Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Basic tools needed for travianX

Status
Not open for further replies.
Joined
May 15, 2009
Messages
799
Reaction score
558
ok i know alot of you use stuff like notepad and other crap to edit your files and dont know what server to get, and many other things like basic errors more so depending on server so im gonna sum up some things.

FIRST OFF you must have some basicl html js php and sql knowledge and IF YOU DO NOT HAVE THIS do not attempt to use this engine find someone with this knowledge or learn it your self before you download and attemp to even run this script

some very good places to learn this stuff is :
- This is the place to learn do the test study untill passed and be confident in your abilitys very very helpfull site.

- one of the best forums to ask all your noob questions and have profesionals or at least people who know what there doing no poop use this forum for all your errors questions advise on code they even have many tutorials for you

- this place can lead you to answers to most questions.


First you need a web server:
WAMP server -
its as easy as running install and installing it
your server root will most likly located in C:\wamp\www\
this is where you put your files.

Now next are tools i use everyday
SQLyog -
Is a very easy database tool alowing you to do pretty much anything you need to do with your database.

NuSphere Php editor -
This program the full version has a built in server for testing and is very awsome the php manual is built in so any function to do with php mysql and what not has a explanation

The next tool is a bit more advanced and allows me to push and pull updates from Git Hub

basicly if you want to fork a rev you can and develop and push your fixes and what not the master branch is for Offical Developers ONLY and we can decide what fixes from what forks can be pushed into the repo

To Start basicly visit this site


and register a Free Account there,
once you have done this, and loged in you should see your dashboard to set up git ,create repos,fork and so on.
first timers click to Set up Git,
Then Follow their instructions to the letter.
once you have done this you should have git-gui installed and git bash(console mode)
for those stuck creating a ssh key when entering a parraphase it dose not look as your typing on screen but in reality you are and when you hit enter you confirm that same parraphase aka password and your key is made

congratulations you have set up git and gotten this far.
you will want to now make a fork of Travianx repo.(do this only if you plan to devlop own fixes and stuff)
to do this is semi easy, more daunghting to first timers.
goto dashboard and click fork a repository.

Now to do the commands it asks you need to open git bash witch you installed when you set up git

and foloow again there instructions to the letter

if you finished this then you will have forked travianx and can start pushing you changes fixes anything really and we all can see and share whats best for engine
TIP use git gui you can open the fork directory you made on your pc and right click a file and it will be in menu when you make changes use it state it changed then commit and push it to you fork

for those that just want to download the repo you can just vist this link -
and click the download option.

now when engine is put live servers tend to not allow warnings and stuff to fly and will pop up and screw with code and your server things most common that i have seen is session header errors i will give a example for you of what causes this

PHP:
line 1: <?php
line 2:echo $somecode;
this will cause a headers already sent error to display
also at end of files especially ones included after each other in other files
PHP:
line 300 :?>
line 301 :
this at the end of line will caause headers to be sent if say this file is included before something else because the whitespace or newline or spaces before and after <?php ?> code bloacks get processes you just need to make sure there is no spaces or new lines before the very first code block <?php
or the very last code block ?> do this and on live server these errors will go away.

another is parse errors most of the admin/mods files are scrwey on live servers some reason the lines all join together its liek tying the whole file on1 line and you get comments and comments are usally

//something
or #####################################
to fix this just open file same file in you editor and it will read normal and copy paste into live file and save and should fix it or you can manually make sure all new lines are there and comments are in right places

this is just a small little guide to working with and using travianx
remeber this is open source devlopment and so sharing is caring :)
like if it helps :thumbup1:
 
Last edited:
Skilled Illusionist
Joined
Apr 21, 2011
Messages
378
Reaction score
88
Nice tautorial, what program do you suggest to use instead of to see the lines and diffrent codes?
 
Status
Not open for further replies.
Back
Top