DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • July 18, 2019, 03:05:16 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Different World  (Read 3892 times)
0 Members and 1 Guest are viewing this topic.
Interloper
Guest
« on: May 01, 2005, 08:09:52 PM »


Okay, well i've been running an 0.9.7 server for a while and it helped me learn a lot more about PHP than I ever thought possible. And after delaying for as long as possible it's ALMOST time for me to get my hands dirty on the new version.

In any case, I'm planning to modify the theme/setting of the next game I set up, which entails changing most of the default places and character names, as well as the more obvious stuff like weapons and armour. The dragon itself will probably even change, once I decide what sort of villain I'd prefer my new world to be terrorised by.

Anyway I'm babbling, so I'll try and get to the point. Basically I am interested to know if many other people have attempted to perform this sort of "complete" alteration of the original lotgd theme. Is the practice generally frowned upon as it involves modifying the core code?

Also, if anyone has experience in this sort of conversion and has any tips to share, or common mistakes I might avoid in this undertaking, any advice would be appreciated.

Many thanks.

 Smiley
Logged
Freeze
Guest
« Reply #1 on: May 01, 2005, 08:32:11 PM »

Well, i'm working on making a complete alteration myself, and havn't gotten to far.

I can tell you that modifying core is frowned upon, but i do it all the time. Its mostly frowned upon because it has to be changed at every update, but if you dont plan on updating, then you should be ok.
Logged
Elessa
Faerie
Mod God
*****
Offline Offline

Posts: 3598


short, sweet and to the point


View Profile
« Reply #2 on: May 01, 2005, 08:46:18 PM »

aye, others of us hath made some changes to make our servers into worlds that are different from the one of the core. as nexus points out, ye must, for the sake of thy sanity, keep track of any changes ye make to the files as they shall be overwritten upon any code upgrades ye shall make.

another thing, keep in mind the license and the provision that ye will need to make available all files of the core ye make changes to upon request by anyone who shouldst request it.

i strongly suggest ye hath two servers. one for development and one that is the live one. that way ye can make all the changes upon the dev server first then push them to the live. that provides the least amount of disruption to the players when upgrades are made.
Logged

Uuma ma ten rashwe, ta tuluva a lle

Play the latest beta version here on LoGD DragonPrime - Axebridge
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #3 on: May 01, 2005, 09:55:17 PM »

If your different world only consists of textual changes, then you don't even have to change any core file, as you can use the translation to to give the original english text an english alternative... No problem here...

Whereas changing the core code will make you go insane (even if keeping track of the changes... Wink )
Logged

Running for more than three years now:
Interloper
Guest
« Reply #4 on: May 01, 2005, 10:13:15 PM »


I see... I will definitely investigate using the translation method further, as I can see how manually altering everything in the core could be an express ticket to a mental health institute.

And yes, one thing I learnt from my experiences with 0.9.7 is that the importance of keeping backups cannot be underestimated. Tongue

Thanks for the replies everyone.

Cheesy
Logged
Lightbringer
Member
Codemeister
****
Offline Offline

Posts: 267


Life's a lich and then you don't die...damn unlife


View Profile
« Reply #5 on: May 02, 2005, 02:27:02 AM »

* Lightbringer blinks at the idea of using the Translation Tool so

Why didn't I think of that?  Huh
Logged

________________________ _____________________

Lightbringer
PHP/SQL/VB.NET/C#/AJAX Developer
CortalUX
Dwellings Project
Mod God
*****
Offline Offline

Posts: 796


Wogga! Meep!


View Profile WWW
« Reply #6 on: May 05, 2005, 07:36:23 AM »

Although 0.9.7 isn't officially supported *hint* Tongue
A few good tips to save modifying too much;
  • Comment out things instead of deleting them
  • Don't put code all in one page! Use includes.
Say I had a few things I wanted to add to village.php.
I'd make a file called 'village.php' in a subdirectory called 'mods'. The village.php would have this in it:
Code:
<?php
if (!isset($type))$type="";
switch (
$type) {
 case 
"beforecommentary":
  
// this is for before the commentary.
 
break;
 default:
 break;
}
?>
Then if you wanted something before the commentary, add this into 'village.php':
Code:
$type="beforecommentary";
if (file_exists("mods/village.php")) include_once("mods/village.php");
Not trying to be patronising... just trying to help.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
106 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search