WastelandForums Forum Index WastelandForums
The exclusive Gaming forums
 
  FAQFAQ    SearchSearch    MemberlistMemberlist    UsergroupsUsergroups    fchat fChat  RegisterRegister  
  ProfileProfile    Log in to check your private messages Log in to check your private messages    Log in Log in 

Position Recorder

 
Post new topic   Reply to topic    WastelandForums Forum Index -> Quests
View previous topic :: View next topic  
Author Message
Kyred
Master


Joined: 16 Mar 2007
Posts: 593
Location: Tulsa, OK

PostPosted: Wed Feb 13, 2008 8:35 pm    Post subject: Position Recorder Reply with quote

Normally when making a quest, you need to provide specific x y z positions to place things where you need them. This can be annoying and time consuming when you have to jot down the positions on a piece of paper, or in notepad.

http://files.filefront.com/QuestKitcs/;9628512;/fileinfo.html

To speed things up, I have made a script that will record positions for you, and store then in a file. Then, you can copy and paste the positions when you start typing the code for your quest. To record a position, all you need to do is hit your pack key (as an admin. Also, if the onConsider does not give a positon [cuz an object is in your LOS], then you need to use #getposition). When you want to save everything, just type "!save <FileName>" and all the positions will be stored in "<FileName>KitData.cs". You can also continue previous work by typing "!load <FileName>".

Also, the script must be activated by typing "!on" ("!off" turns it off).

There are also extra commands that I have added which help with managing the list. They include:
    !pos delprev -Deletes previous position.
    !pos delete <index#> -Deletes a position.
    !pos name <index#> <name> -Can also rename positions. Use this as a memory aid for what the position is for.
    !pos nextname -Gives the next position this name tag.
    !pos override <index#> -Overrides position.
    !pos clear -Clears all positions.
    !pos list -Lists all current positions with index# and name tags.
    !clear -Clears all positions.


Eventually, I want to expand this script to allow whole quest commands to be written to a file (for example, you do !spawnpoint <botType> <name> <ect.> will cause the next position to be recorded and as say(0,#spawn blah blah bleh"); or something like that.)

NOTE: This script requires Presto to work properly. Also, it modifies your #say command, so I reccommend not adding exec(QuestKit); to your autoexec.cs. Instead, just exec() it in the console when you need it.
Back to top
View user's profile Send private message AIM Address
Eagle101
Peasant


Joined: 11 Apr 2007
Posts: 149
Location: Australia

PostPosted: Thu Feb 14, 2008 12:11 am    Post subject: Reply with quote

Why not go one step further and provide a small executable alongside quest scripts (from now on) that will read the output of your recorder and edit the positioning variables within the scripts? If using a compiling language takes too long there are easy to use interpreting languages like Python (sorry for not mentioning others, I'm really not sure what exists out there right now) which can do everything quite fast and also has modules which allow compilation (meaning there is no need to install the python environment).
_________________
Looks like roadkill... DINNER!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Jaegex
Warrior


Joined: 25 Nov 2007
Posts: 325
Location: C:/Assholes/An Hueg assholes/Jaegex.virus

PostPosted: Thu Feb 14, 2008 9:46 am    Post subject: Reply with quote

I made 2 scripts sort of like these, but you type the variable name for instance
!savequest <obj/botname><.csfile>

And another that would spawn 50 bots when you press p somewhere. Very Happy
_________________
http://www.phpbbcity.com/forum/viewtopic.php?t=147&start=0&postdays=0&postorder=asc&highlight=&mforum=bovstvt
Back to top
View user's profile Send private message Send e-mail
Kyred
Master


Joined: 16 Mar 2007
Posts: 593
Location: Tulsa, OK

PostPosted: Thu Feb 14, 2008 3:55 pm    Post subject: Reply with quote

Eagle101 wrote:
Why not go one step further and provide a small executable alongside quest scripts (from now on) that will read the output of your recorder and edit the positioning variables within the scripts? If using a compiling language takes too long there are easy to use interpreting languages like Python (sorry for not mentioning others, I'm really not sure what exists out there right now) which can do everything quite fast and also has modules which allow compilation (meaning there is no need to install the python environment).
My knowledge of programming is limited to 2 scripting languages (Darkstar/Torque and Unreal Script) and 1 programming language (Java. And I'm not an expert on it either) Sad. I don't have the free time, like I used to, to learn another language. My Calculus and Physics classes take up most my time Mad
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    WastelandForums Forum Index -> Quests All times are GMT - 6 Hours


Page 1 of 1

 
Jump to:  
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 vote in polls in this forum