It is currently Wed Apr 17, 2024 7:04 pm


The forum is READ ONLY. Please direct any future discussions to our Facebook page


 Page 1 of 1 [ 1 post ] 
Author Message
 Post subject: Programmers are gonnal like this...
PostPosted: Tue Aug 26, 2003 1:33 am 
Developer
Developer
User avatar

Joined: Wed Feb 19, 2003 6:07 pm
Posts: 2930
I have just added two new things to AATraders that is going to be a HUGE boon for people who are wanting to create things for the game.

Commands

You can now add new commands to the game very easily. Say you have this great idea for some new type of combat or a new way of displaying the map. Well you can now create your own command and just drop it into the game.

There is a new directory called modules_command where all of the new commands are stored. As an example the new command you have created is called "Sneak Attack" and the name of the program is sneak_attack.php. To get the game to recognize your new command you just create a simple text file called sneak_attack.ini (the same name as your new program but with the extention of ini instead of php). Inside the ini file you include the command name you would like to use..

Sneak Attack; ;This is a comment you can add to the command name


Save out the ini file. The all an admin has to do is install those two files into the modules_command directory and the game will find and add them. Nothing else for the admin to do.


Schedules

Say you need a schedule to go with your new command? Well you can create your own schedule as well. Everything is the same as above for commands only the directory is called modules_sched. And your ini file is different. Here is an example ini file for a schedule.

Test Schedule Insert; ; Name of the Schedule
Y; ;Loop Y or N
5; ;Ticks Full
0; ;Spawn count if Loop = N


This is basically the same information that is needed by the scheduler to run your new schedule. When it finds the ini file it will insert the information into the scheduler database the first time the scheduler runs after you installed the files. And since this information is in an ini file the admin can check the information and adjust it to suit their needs.

This makes for another great and easy way for people to expand upon the base game in addition to the entire templating system that should be finished by the middle of next month.

PJ


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron