trunk ports
Moderators: jelco, bert_the_turtle
trunk ports
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
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
xander
Then you need to put a line in the buildings section of your mod's game.txt file:
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
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 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
Who is online
Users browsing this forum: No registered users and 16 guests