trunk ports

Talk about your new mod or map here

Moderators: jelco, bert_the_turtle

Drake132
level0
Posts: 5
Joined: Sat Jan 05, 2008 9:29 pm

trunk ports

Postby Drake132 » Sat Jan 05, 2008 9:31 pm

im creating this mod and everything is going good but the only problem i cant figure out is how to make trunkports turn on without having to get an engineer to reprogram it
Drake132
level0
Posts: 5
Joined: Sat Jan 05, 2008 9:29 pm

Postby Drake132 » Mon Jan 07, 2008 2:40 am

no one knows???
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Mon Jan 07, 2008 4:14 am

It depends on what you are trying to do. If you are in a level, and want the trunkport to come online in the middle of the level, you need an engineer to reprogram it. If you want a trunkport to be online from the start, you need to use the buildings section of game.txt to make it so. There are other tricks, too, but without knowing what you are doing, there is little that I can do to advise you.

xander
Drake132
level0
Posts: 5
Joined: Sat Jan 05, 2008 9:29 pm

Postby Drake132 » Mon Jan 07, 2008 5:24 am

i want it so its on at the start of the level
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Mon Jan 07, 2008 3:53 pm

Then you need to put a line in the buildings section of your mod's game.txt file:

Code: Select all

Buildings_StartDefinition
   # Id  teamId  locId   type   link  online
   # =======================================
      0    2      1     11      0      0
      0    2      2     11      1      1


ID is the building's unique ID, which can be found in either the mission file, or the map file for the level. TeamID is the team to which the building belongs. LocID is the level ID in which the building can be found -- this can be found in the first section of game.txt. Type is the type of buildings -- 11 is for trunkports. Link is which building the building is linked to. In the case of radars, it directs the radar to aim at another radar; in the case of trunkports, it should be the LocID of another level. Finally, Online is the status of the building, 1 for online, 0 for offline. In the above example, building ID 0 in location 1 is a trunkport owned by team 2 (the yellow team) which starts out offline; while building ID 0 in location 2 is a trunkport owned by team 2 which starts out online.

xander
Cotcan
level1
level1
Posts: 20
Joined: Tue Jun 24, 2008 10:49 pm

Postby Cotcan » Wed Jun 25, 2008 1:50 am

The truckport will only do the stargate thing when both sides are online. If doing a objective, both sides must be online, or the game will say it is not online. So the side you want online is the side you can't get to untill after you have beaten the current level.
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Wed Jun 25, 2008 2:46 am

Cotcan wrote:The truckport will only do the stargate thing when both sides are online. If doing a objective, both sides must be online, or the game will say it is not online. So the side you want online is the side you can't get to untill after you have beaten the current level.

The last time that anyone posted in this thread was over 6 months ago. I think it is fair to say that Drake132 is gone, and will not be coming back. Thus, he doesn't really need any further answers. Therefore, you probably shouldn't have bothered bumping this.

xander

Return to “Mod Projects”

Who is online

Users browsing this forum: No registered users and 16 guests