Jump to content

CnCNet Forums

Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Nyerguds

Some very interesting trigger research

Recommended Posts

Over at TiberiumWeb, Lin Kuei Ominae has been doing some very interesting experiments with triggers, and has come up with some neat ways to do stuff like making an AI-owned MCV move to a spot and deploy there, making reinforcements arrive on the Nod airstrip, and making a trigger to give a player money. I suggest you check it out ;)

http://www.tiberiumweb.org/forums/index.php?showtopic=3743

Mind my replies though; Lin Kuei did make a couple of mistakes :P

Share this post


Link to post
Share on other sites

This may be interesting for mission makers: I'm debugging the trigger reading. So far I've discovered:

 

-Trigger names can indeed only be 4 characters long.

-The C&C ini read does NOT care about ";" comment signs at the start of a line. In fact, I noticed that adding comment lines starting with ; between my triggers screws up the trigger names, because the game reads from the start of the line to the next equal sign, even if that's on the next line. Then it takes the first 4 bytes of that (meaning, of the comment part on the previous line) as trigger name. I tried starting comments with ";=" but this crashed the trigger scanning code as it tried to interpret my comment as trigger.

-Teamtypes seem to have a maximum length of 12 characters, judging from the storage space reserved for the name in a teamtype object in memory. Didn't actually debug the teamtype reading, but there were 13 bytes there, and strings normally always end on a 0x00 byte.

Share this post


Link to post
Share on other sites

yeah, I was adding some comments to my triggers to make things more clear and fix some problems, and suddenly my celltriggers stopped working (because it read the comment as trigger name).

 

So I thought, let's debug it, and see what goes wrong...

Share this post


Link to post
Share on other sites

Interesting, I'll keep these in mind when planning missions for TD:X ;)

 

EDIT: Whoa, I didn't even remember I had posted there :O

Share this post


Link to post
Share on other sites

Huh, looks like tiberiumweb is dead... wonder if it'll come back -_-

 

 

I should really write all of that stuff down some time. I think I still remember all of it.

-Making MCVs deploy

-Limiting the patrol path of gunboats

-C17 reinforcing tricks and giving money

 

...not sure if there was much besides that.

Share this post


Link to post
Share on other sites

Well, basically:

Making MCVs deploy:

  • Put an MCV on the map and give it the "Deploy" command
  • Make a trigger to put it in a team to move it around to the place where you want it.
  • Make this trigger fire immediately at the start of the mission, so it overrides the command of the MCV before it actually deploys.
  • After moving to the destination of the teamtype, It will deploy on the end of the route. I'm not sure if you have to give it a new Deploy command there or not, though; it's been a while. There may be some example maps on the forum here, of people who experimented with it.

This can be used for missions where you have to disrupt an enemy convoy with an MCV before it reaches its destination and starts building a base.

Restricting the route of gunboats:

  • I think this was simply making them move between two points. You have to make sure the waypoints are both exactly on its Y coordinate on the map.

C17 reinforcing and money giving:

  • You can make reinforcements arrive with C17s, but only one unit at the time
  • If you specify more units, the first will be delivered, and you will get the cash of the others as if the units were built but then cancelled
  • If you make units reinforce with C17s, but the player does not have an Airfield, the player will receive the money of the cost of the units instead.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Similar Content

    • By uzernaem
      Hi,
      I was being nostalgic and decided to reimplement cursor graphics from the PS1 version. Note that some of the changed stuff is not a 1:1 rip from PS1 but a recreation, due to PS1 version lacking some of the sprites. Scroll icons were moved a bit for the smoother transition to the "stop sign" versions. They don't touch screen edge anymore, but still look fine.
      mouse.zip

    • By DoMiNaNt_HuNtEr
      I wanna download C&C95 but the link on your website is dead. You guys still got access to that file?
    • By FunkyFr3sh
      Running CnCNet server using systemd (Linux x64)
       
      wget downloads.cncnet.org/tunnel.sh sh tunnel.sh 200 "Unnamed Server" If you're unsure what linux distro to choose, just take the latest version of Ubuntu
       
       
      Using the above method you can run both CnCNet servers as a service and they will continue to run even after the server restarted.
       
      Alternatively you can also run the servers individually (see below):
       
       
       
       
       
      New Server (All Games)
       
       
      Linux x64 example:
      wget -c https://downloads.cncnet.org/cncnet-server.tgz -O - | tar -xz nohup ./cncnet-server --name "My cool server" --maxclients 200 --port 50001 --portv2 50000 > cncnet-server.log 2>&1 & Linux ARM
       
       
      Windows:
      On XP, Vista and 7 make sure .NET 4.0 is installed: https://www.microsoft.com/en-US/download/details.aspx?id=17113
      Download the server and start it: http://downloads.cncnet.org/cncnet-server-gui.exe
       
       
      Note: Servers are chosen automatically by CnCNet and are only used in case 2 players fail to establish a Peer-To-Peer connection. Yuri's Revenge players can select a specific server via the advanced settings while hosting a game room.
       
       
       
       
       
      Old Server (Yuris Revenge only)
       
       
      Linux (Ubuntu) example:
      sudo apt-get install default-jre wget http://downloads.cncnet.org/cncnet-tunnel.exe nohup java -jar cncnet-tunnel.exe -name "My cool server" -maxclients 200 -port 50000 -headless > cncnet-tunnel.log 2>&1 &  
       
      Windows:
      Download the server and start it: http://downloads.cncnet.org/cncnet-tunnel.exe
       
       
      Note:  To use a specific server you'll have to select it via the advanced settings while hosting a game room.
       
       
       
       
       
      The servers will not show up instantly on the website, it can take up to 4 hours
       
       
       
    • By AndrewFord
      CnCNET is great, and since RA source code has been released this is a huge step in improving the game and adding nice juicy features that allow us to enjoy the game we love.
      Add a replay system, maybe as an option as saving a replay could add more lag to games.
      Fix bug where you can ally someone who is trying to Engi your building which prevents it from being captured
      New .ini keywords, this would allow for more control over making maps of all types from nurple to Defense maps
      I'll list a few keyword suggestions
      Ability to remove darkness crate as random chance Chrono (superweapon) Crate Size of Nukes/Demo Trucks explosions Force Ore Regrowth on (ignores lobby setting "Ore Regenerates") Crusher Flag for vehicles Helicopter Firing Delay Auto Attack Flag (Tanya for example) Build Speed Multiplier (per unit/building) New Triggers New blank units if modders want to add them to maps. (Like Ferrets Tiberian Alert mod)
       
       
       
    • By GradualyWatermelon
      I installed C&C: Dawn of Tomorrow but it doesn't work. I can get it to work by replacing its executable with the one from CnCNet Tiberian Dawn but it will use Tiberian Dawn rules. Any way to get the mod to work without messing it up? Also, here's the error:


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...