Jump to content

Scripting Follies


Recommended Posts

SpacePhish, in that other thread, you said that you had 2 stations in the Earth region. I have some questions.

  1. Why did you need to edit the objects.scr, objclass.scr files etc, in order to just put another station in Earth region?

  2. Where did you actually put the station?

  3. What did you modify in those system files?

Link to comment
Share on other sites

Man! Great I just wrote a long post and I lost it because I forgot to put in my password.

Anyway...here is what I did:

object.scr

code:

# user station

MYSTAT.3DC,my station,SRt,T10,?26,!100000,%150,^30000,}350000,y100,L10,H100,P10,R10,Y10,[1000,]2000,(TPRYVEGLN)


objclass.scr

code:

# my station

CLASS MYSTATION:MYSTAT.3DC,superstation

{

# Terran/Military

AI_OPTIONS=;

SHIP={10,BATTLECRUISERMK1};

SHIP={10,BATTLECRUISERMK2};

SHIP={10,SENTRY};

SHIP={10,SOLNAR};

SHIP={10,INTERCEPTOR};

SHIP={10,AURORA};

SHIP={10,VIPER};

SHIP={10,VANDAL};

SHIP={10,LRT10};

SHIP={10,MRT15};

SHIP={10,CANLON};

SHIP={10,JENSTAR};

SHIP={10,SHUTTLE1};

SHIP={10,SHUTTLE2};

SHIP={10,MARINELS};

POD=[sHUTTLE1];

TURRET=[iOD2,IOD2,IOD2,IOD2,IOD2,IOD2,IOD2,IOD2,IOD2];

MISSILE={100,DROGUE};

MISSILE={100,PIRANHA};

}


Glob_ai.scr

code:

.mystation,100,100,100,100,100,100,0

start orbit earth,400000,250,90,0

stop


Glob_dyn.scr

code:

terran military,,mystation,mystat.3dc,mystation]


Count it all smile.gif

About .asc. I was talking about using TED2ASC to convert them into 3D files.

I already did, but the model did work right because I download it from 3dcafe(I'm sure the asc was the right format, the model didn't have any texture).

That's all for now. I will keep you posted, Supreme Commander smile.gif

*salute*

Link to comment
Share on other sites

Okay, I have a space-region up and running. I haven't had the time to put up a station yet, anyway I'm about to leave town but before I go I want to ask few questions...

in the readme file you stated:

quote:

- If you put a starstation in a new space region, not only will you not be able

to dock with it but Tradcom won't have the proper data either. The data for

these are embedded in the BC3K kernel and I will extract them later providing

access to their modifications.


Are you still doing this? If it's too trouble forget it then.

The reason I'm asking is I plan on making a MOD for BC. The missions is going to go down in the new regions, and I want to put space-stations there.

I playing around with TED too. Shooo, one hella of an interface S.C smile.gif.

Okay, see ya peeps around, out...

BTW does Glob_gn.scr have anything to do with this? It defines attrubites for the regions, like tech-level, inflation level, defense point, etc...

[This message has been edited by SpacePhish (edited 03-17-2000).]

Link to comment
Share on other sites

quote:


Are you still doing this? If it's too trouble forget it then.

No. The station names in BC3K v2.0x are hard coded in the kernel because they are used for the economics database. However, you might be able to cheat by giving the CVD name (the last parameter for the object ID definition in the [AI] block) for the object, one of those used in the kernel. Try galcomhq first and see if that works. If it does, when you dock with your station, it will think you are docked at galcomhq. Dunno if it will work though.

quote:


I playing around with TED too. Shooo, one hella of an interface S.C

Yep, its a programmers tool. smile.gif

quote:


BTW does Glob_gn.scr have anything to do with this? It defines attrubites for the regions, like tech-level, inflation level, defense point, etc...

No, glob_rg.scr does not need to be modified. It is only used by the PTE database.

Here is the list of starstation names as used in the code. I'm just cutting and pasting the array from the source code.

code:


//

// dock launch animation/station names

//

struct { char *cvd_name;char *region;int is_starstation;} stations[] =

{

{"GALCOMHQ","EARTHZ",1},

{"GENESIS","MOONRZ",1},

{"STARPATH","MARSZ",1},

{"GAZER1","PLUTOZ",1},

{"CENTAURI","CRONUSZ",1},

{"ALERI","TRAMISZ",1},

{"SYGAN","SYGANZ",1},

{"IDAN","ZILONZ",1},

{"PIXAN","LENNENZ",1},

{"ERIDANI","CANAANZ",1},

{"RAMIX","RAMISZ",1},

{"TULON","ARIMAZ",1},

{"ZERIN","EORIZ",1},

{"CENTRON","POLAR1Z",1},

{"VELARI","POLAR2Z",1},

{"PROCYON","ACTISIVZ",1},

{"PROCIN","ACTISVZ",1},

{"VANGUARD","RONUSIVZ",1},

{"BARIN","HERINZ",1},

{"ORUNA","DARAINZ",1},

{"STARON","TYRUS2Z",1},

{"STARWIND","LYDANZ",1},

{"ALLIANCE","ZELANAZ",1},

{"ADONIS","PRAVISZ",1},

{"DABRIS","HADAR9Z",1},

{"TORON1","KRYSTARZ",1},

{"TORON2","REBELANZ",1},

{"ARENIS","KHANZ",1},

{"ELURO","CHANIS1Z",1},

{"RAGIN","CHANIS2Z",1},

{"EXIN","KRUGERZ",1},

{"ALIDIS","OTURA6Z",1},

{"AVINO","OTURA9Z",1},

{"CYGNI","LV103Z",1},

{"HEXAR","GAMMA1Z",1},

{"GAMMULA","GAMMA2Z",1},

{"SORIUS","LV110Z",1},

{"PARIX","LV115Z",1},

{"ROGAN","CHALINIZ",1},

{"SOVAR","MANTISIZ",1},

{"CYCLONE","CYRONIVZ",1},

{"ROCON","REGISVIZ",1},

{"SARIEN","SARIENZ",1},

{"LV125","LV125Z",1},

{"LV130","LV130Z",1},

{"ALTERIS","ALTERISZ",1},

{"MONDIAL","MONDIALZ",1},

{"RECARA","YLISIAZ",1},

{"MAJORIS","MAJORISZ",1},

{"WRAITH","RINAALZ",1}, // Wraith fleet HQ (GALCOM)

{"ORION","JUPITERZ",1}, // Orion fleet HQ (GALCOM)

{"ISS","SATURNZ",1}, // ISS fleet HQ (GALCOM)

{"SCID","CENTRISZ",1}, // 15th SCID Planetary Force HQ (EarthCom)

{"SPECTRE","ANTISZ",1}, // Spectre fleet HQ (Insurgent)

{"EARTH","EARTH",0}, // Surface starbases start here...

{"MARS","MARS",0},

{"CENTRIS","RONUS-IV",0},

{"VARAX","VARAN",0},

{"TRAMIS","TRAMIS",0},

{"SYGAN","SYGAN",0},

{"LYRIUS","LYRIUS",0},

{"BADRAN","MIDAE",0},

{"FRELLIS","FRELLIS",0},

{"XYLAN","XYLAN",0},

{"CARON","EORI",0},

{"POLARIS-1","POLARIS-1",0},

{"ELTIN","ACTIS-IV",0},

{"ACTIS-V","ACTIS-V",0},

{"TRENIS","RONUS-IV",0},

{"BELIN","HERIN",0},

{"SCORPIA","SCORPIA",0},

{"SIMPIX","TYRUS-2",0},

{"KRYNON","LYDAN",0},

{"LANIX-V","ZELANA",0},

{"CYRIAN","PRAVIS",0},

{"HADAR-9","HADAR-9",0},

{"TAU RANIS","KRYSTAR",0},

{"ARENIS","KHAN",0},

{"XYON","CHANIS-1",0},

{"OMEGA-9","LV-184",0},

{"ALIDIS","OTURA-6",0},

{"ALPHA CYGNI","LV-103",0},

{"LV-105","LV-105",0},

{"GAMMA","GAMMA-1",0},

{"GAMMULA","GAMMA-2",0},

{"TYRINIS","TYRINIS",0},

{"LV-110","LV-110",0},

{"ALPHA GAMMA","CHALINIS",0},

{"CRYSTAR","CRYSTAR",0},

{"CYRON-VI","CYRON-VI",0},

{"REGULUS","REGIS-IV",0},

{"SARIEN","SARIEN",0},

{"TAREAN","TAREAN",0},

{"OLINDA","DROIA",0},

{"YLISIA","YLISIA",0},

{"MAJORIS","MAJORIS",0},

{NULL,NULL,1}

};


Link to comment
Share on other sites

Thanks S.C! It worked. I have one station nameed wonder, I changed to CVD name, now it's shows up as GalcomHQ, but I can dock with it.

I'm now starting a project called GBS edit. Currently I'm working on letting the user edit and add new regions. I will read statics.scr into my own strucutre, this way I will be able to modify existing regions, like adding jump-point...

GBS edit will then write the modified data into a new script. The user then include this script instead of static.scr. The program will also make changes to the 3D files. The problem with this is that the user will have to run a bat file which convert the new 3dt files into 3D files.

Of course my ultimate goal is to put a graphic interface on top of this...only time will tell.

Link to comment
Share on other sites

quote:


I'm now starting a project called GBS edit. Currently I'm working on letting the user edit and add new regions. I will read statics.scr into my own strucutre, this way I will be able to modify existing regions, like adding jump-point...

GBS edit will then write the modified data into a new script. The user then include this script instead of static.scr. The program will also make changes to the 3D files. The problem with this is that the user will have to run a bat file which convert the new 3dt files into 3D files.


You won't be successful.

STATICS.SCR just lists the links so that the AI route-finding logic, has data to work with. So, putting in a jump point or any anomaly for that matter, in that file only, won't work.

In order to make it work, you have to read the tutorial I'm doing in 2 mins.

[This message has been edited by Supreme Cmdr (edited 03-19-2000).]

Link to comment
Share on other sites

Yes S.C I understand what your saying. I already read your readme.txt and did that.

In GBS edit I'm going to edit the script file, then make a new 3dt file, you know the file that's been converted using cv3d. The 3dt file is just the ascii file description the region, casue I looked into it, it's not that complicated at all. So I'm going to try to create a brand new 3dt file with my program. There is a catch tho, the user will have to convert this 3dt file back into the .3d file. Which I will suppile a .bat file that does this automatically for the user. Do you see what I'm saying now?

All this experimentation will lead up to my final GUI program. Thus the user will be able to create regions graphically, but behind since I will write all the neccessary stuff to either the .scr file or the 3dt file.

Of course I want to make planets too, but I have to take a look first, maybe I am bitting off more than I can chew.

That's all for now.

[This message has been edited by SpacePhish (edited 03-19-2000).]

[This message has been edited by SpacePhish (edited 03-19-2000).]

Link to comment
Share on other sites

quote:

Using the .3DT file is dangerous and not advisable


My last name is dangerous smile.gif. I been coding for the past few hours, I got the input part of the program hacked out. I'm now able to read the static.scr file into my own data structure. My next move is to write them to a file with the proper BC3k script format. After that I'm going to try tackle the problem of making 3DT file, I hope everything work out.

Out...

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...