Holland Posted April 3, 2019 Share Posted April 3, 2019 (edited) NOTE: THIS IS TESTED AND ON CNCNET ONLY. SKILLS IN MAP FILE EDITING AND TRIGGER AND MODDING KNOWLEDGE IS REQUIRED. (Should work with spawn hexed, and credit trigger hexed clients like tsclient) Or skip the tutorial, and Download map template with pre-made oil derricks: oilderricks template.mpr This Tutorial and files and codes have an updated version, see my next comments INTRO I've used Lin Kuei Ominae's "Ion collector" as oilderrick in map. it seems perfect for TS's form of RA2's oil derricks It makes for very interesting gameplay in TS, so far many people online really enjoyed it. Rampastring's Spawn patch and Give Credits trigger make so much possible, and this is just a glimpse of it. It's been tested on 3 maps so far, and has potential to be added on standard maps as well, just for fun. On these test version, the Ion Collectors will give you 100 credits every 10 seconds, and some power. Its a nice bonus, and even if you can keep your collector for 50 (tibsun) seconds, after its being hijacked by someone else, you at least have your engineer money back, and had the ability to build next to it. Of course the entire building is modifiable, right now its immune, can't be sold and you only need 1 engineer to capture it. (despite multi engineer) This is a nice map i found from the mod "The Second Tiberium War", just cuz i thought it was so pretty, i added them there to test and its a pretty smooth 1v1 gameplay This map are 2 more with these are in the attachments below. Note that these still have the testing 100$ per 10 seconds, and lots of power. in This tutorial on the other hand, reduced to $85 and little power. TUTORIAL Since it takes a big load of triggers to create the oil derrick logic, i figured to make it easier on everyone else, and provided a simple way to get them in your map. It is to simply copy paste the trigger codes in your map file. And attach the triggers (in Final Sun) to the building. (I also added a second approach in the attachment RAR file, using XCC_INI_CLT) THIS IS 1 SINGLE OIL DERRICK! DOWNLOAD OILDERRICK.RAR FOR 1,2,4 AND 8 OIL DERRICKS! [b]; If you already have triggers, Just copy paste the content under Tags, Events, Triggers, and Actions below your existing ones. ; This content includes [Houses], make sure you don't double copy it[/b] [Triggers] 01L10002=Neutral,01L10020,attach to Oilderrick#1,0,1,1,1,0 01L10004=Spawn1,<none>,Oilderrick#1 - spawn1,1,1,1,1,0 01L10006=Spawn2,<none>,Oilderrick#1 - spawn2,1,1,1,1,0 01L10008=Spawn3,<none>,Oilderrick#1 - spawn3,1,1,1,1,0 01L10010=Spawn4,<none>,Oilderrick#1 - spawn4,1,1,1,1,0 01L10012=Spawn5,<none>,Oilderrick#1 - spawn5,1,1,1,1,0 01L10014=Spawn7,<none>,Oilderrick#1 - spawn7,1,1,1,1,0 01L10016=Spawn6,<none>,Oilderrick#1 - spawn6,1,1,1,1,0 01L10018=Spawn8,<none>,Oilderrick#1 - spawn8,1,1,1,1,0 01L10020=Neutral,01L10022,Oilderrick#1 Captured by 2 ,0,1,1,1,0 01L10022=Neutral,01L10024,Oilderrick#1 Captured by 3 ,0,1,1,1,0 01L10024=Neutral,01L10026,Oilderrick#1 Captured by 4 ,0,1,1,1,0 01L10026=Neutral,01L10028,Oilderrick#1 Captured by 5 ,0,1,1,1,0 01L10028=Neutral,01L10030,Oilderrick#1 Captured by 6 ,0,1,1,1,0 01L10030=Neutral,01L10032,Oilderrick#1 Captured by 7 ,0,1,1,1,0 01L10032=Neutral,01L10162,Oilderrick#1 Captured by 8 ,0,1,1,1,0 [Actions] 01L10002=9,14,0,50,0,0,0,0,A,53,2,01L10004,0,0,0,0,A,54,2,01L10006,0,0,0,0,A,54,2,01L10008,0,0,0,0,A,54,2,01L10010,0,0,0,0,A,54,2,01L10012,0,0,0,0,A,54,2,01L10016,0,0,0,0,A,54,2,01L10014,0,0,0,0,A,54,2,01L10018,0,0,0,0,A 01L10004=1,106,0,50,85,0,0,0,A 01L10006=1,106,0,51,85,0,0,0,A 01L10008=1,106,0,52,85,0,0,0,A 01L10010=1,106,0,53,85,0,0,0,A 01L10012=1,106,0,54,85,0,0,0,A 01L10014=1,106,0,56,85,0,0,0,A 01L10016=1,106,0,55,85,0,0,0,A 01L10018=1,106,0,57,85,0,0,0,A 01L10020=9,14,0,51,0,0,0,0,A,53,2,01L10006,0,0,0,0,A,54,2,01L10004,0,0,0,0,A,54,2,01L10008,0,0,0,0,A,54,2,01L10010,0,0,0,0,A,54,2,01L10012,0,0,0,0,A,54,2,01L10016,0,0,0,0,A,54,2,01L10014,0,0,0,0,A,54,2,01L10018,0,0,0,0,A 01L10022=9,14,0,52,0,0,0,0,A,53,2,01L10008,0,0,0,0,A,54,2,01L10006,0,0,0,0,A,54,2,01L10004,0,0,0,0,A,54,2,01L10010,0,0,0,0,A,54,2,01L10012,0,0,0,0,A,54,2,01L10016,0,0,0,0,A,54,2,01L10014,0,0,0,0,A,54,2,01L10018,0,0,0,0,A 01L10024=9,14,0,53,0,0,0,0,A,53,2,01L10010,0,0,0,0,A,54,2,01L10006,0,0,0,0,A,54,2,01L10008,0,0,0,0,A,54,2,01L10004,0,0,0,0,A,54,2,01L10012,0,0,0,0,A,54,2,01L10016,0,0,0,0,A,54,2,01L10014,0,0,0,0,A,54,2,01L10018,0,0,0,0,A 01L10026=9,14,0,54,0,0,0,0,A,53,2,01L10012,0,0,0,0,A,54,2,01L10006,0,0,0,0,A,54,2,01L10008,0,0,0,0,A,54,2,01L10010,0,0,0,0,A,54,2,01L10004,0,0,0,0,A,54,2,01L10016,0,0,0,0,A,54,2,01L10014,0,0,0,0,A,54,2,01L10018,0,0,0,0,A 01L10028=9,14,0,55,0,0,0,0,A,53,2,01L10016,0,0,0,0,A,54,2,01L10006,0,0,0,0,A,54,2,01L10008,0,0,0,0,A,54,2,01L10010,0,0,0,0,A,54,2,01L10012,0,0,0,0,A,54,2,01L10004,0,0,0,0,A,54,2,01L10014,0,0,0,0,A,54,2,01L10018,0,0,0,0,A 01L10030=9,14,0,56,0,0,0,0,A,53,2,01L10014,0,0,0,0,A,54,2,01L10006,0,0,0,0,A,54,2,01L10008,0,0,0,0,A,54,2,01L10010,0,0,0,0,A,54,2,01L10012,0,0,0,0,A,54,2,01L10016,0,0,0,0,A,54,2,01L10004,0,0,0,0,A,54,2,01L10018,0,0,0,0,A 01L10032=9,14,0,57,0,0,0,0,A,53,2,01L10018,0,0,0,0,A,54,2,01L10006,0,0,0,0,A,54,2,01L10008,0,0,0,0,A,54,2,01L10010,0,0,0,0,A,54,2,01L10012,0,0,0,0,A,54,2,01L10016,0,0,0,0,A,54,2,01L10014,0,0,0,0,A,54,2,01L10004,0,0,0,0,A [Events] 01L10002=1,1,0,50 01L10004=1,13,0,10 01L10006=1,13,0,10 01L10008=1,13,0,10 01L10010=1,13,0,10 01L10012=1,13,0,10 01L10014=1,13,0,10 01L10016=1,13,0,10 01L10018=1,13,0,10 01L10020=1,1,0,51 01L10022=1,1,0,52 01L10024=1,1,0,53 01L10026=1,1,0,54 01L10028=1,1,0,55 01L10030=1,1,0,56 01L10032=1,1,0,57 [Tags] 01L10003=2,ATTACH TO OILDERRICK #1 1,01L10002 01L10005=2,Oilderrick#1 - spawn1 1,01L10004 01L10007=2,Oilderrick#1 - spawn2 1,01L10006 01L10009=2,Oilderrick#1 - spawn3 1,01L10008 01L10011=2,Oilderrick#1 - spawn4 1,01L10010 01L10013=2,Oilderrick#1 - spawn5 1,01L10012 01L10015=2,Oilderrick#1 - spawn7 1,01L10014 01L10017=2,Oilderrick#1 - spawn6 1,01L10016 01L10019=2,Oilderrick#1 - spawn8 1,01L10018 [Houses] 0=GDI 1=Nod 2=Neutral 3=Special 50=Spawn1 51=Spawn2 52=Spawn3 53=Spawn4 54=Spawn5 55=Spawn6 56=Spawn7 57=Spawn8 Save, Open Final Sun and Attach #Oilderrick1 to your oilderrick building! To Change the amount of credits, Select all copied lines under Actions, Replace all: ,85, replace with ,youramount, To change the delay between credits, select everything under Events, Replace all: ,10 replace with ,youramount (Using notepad++ you can select columns holding ALT Now to add your Charge Collector, copy these codes in your map, if you already have mods or imported rules.ini in your map, then make sure you don't double up on [Animations] and [BuildingTypes] (YOU CAN SKIP THIS STEP IF YOU USE A DIFFERENT BUILDING) [Animations] 1045=ICCPP_A 1046=ICCPP_AD 1047=ICCPP_B 1048=ICCPP_C 1049=ICCPP_C2 [BuildingTypes] 277=ICCPP 278=ICCPPUP 381=ICCPPUP1 382=ICCPPUP2 383=ICCPPUP3 [ICCPP] Cost=800 Name=Ion Charge Collector Armor=heavy Owner=GDI,Nod Power=10 Sight=4 Crewed=yes Immune=yes Points=40 Adjacent=8 Strength=15000 Upgrades=3 Explosion=FIREEXPL MaxDebris=6 TechLevel=-1 Capturable=true Unsellable=yes ThreatPosed=0 TogglePower=no DamageSmokeOffset=300, 300, 450 DamageParticleSystems=SparkSys,SmallGreySSys,BigGreySmokeSys [ICCPPUP] Cost=300 Name=Charge Collector Armor=wood Image=ICCPP_C Owner=GDI Power=2 Sight=1 Crewed=no Points=30 Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60 TechLevel=-1 Capturable=no ThreatPosed=0 PowersUpToLevel=-1 PowersUpBuilding=ICCPP [ICCPPUP1] Cost=1000 Name=Charge Collector AI Armor=wood Image=ICCPP_C Owner=GDI,Special Power=2 Sight=1 Crewed=no Points=30 Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60 TechLevel=9 BuildLimit=0 Capturable=no AIBuildThis=yes ThreatPosed=0 Prerequisite=BARRACKS,ICCPP PowersUpToLevel=-1 PowersUpBuilding=ICCPP [ICCPPUP2] Cost=1000 Name=Charge Collector AI Armor=wood Image=ICCPP_C Owner=GDI,Special Power=2 Sight=1 Crewed=no Points=30 Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60 TechLevel=9 BuildLimit=0 Capturable=no AIBuildThis=yes ThreatPosed=0 Prerequisite=BARRACKS,ICCPP PowersUpToLevel=-1 PowersUpBuilding=ICCPP [ICCPPUP3] Cost=1000 Name=Charge Collector AI Armor=wood Image=ICCPP_C Owner=GDI,Special Power=2 Sight=1 Crewed=no Points=30 Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60 TechLevel=9 BuildLimit=0 Capturable=no AIBuildThis=yes ThreatPosed=0 Prerequisite=BARRACKS,ICCPP PowersUpToLevel=-1 PowersUpBuilding=ICCPP Make all the edits you want, there is a trigger that stops the money going when building is destroyed by C4. Use BridgeRepairHut=yes to avoid C4 ; Make sure you use Notepad's 'replace all' function (ctrl+f) And check "In selection only", AND ofcourse, if you mess something up just use CTRL+Z (undo) HOW THIS WORKS/HOW IT'S MADE If you want to make something similar, first make sure the client you use is updated with the latest hacks, so it will include being able to use Spawn locations in triggers, activating it by adding the [Houses] list in your map as listed in the code. Plus the give credits should be in the hack too. (TS-Client should have this, but have not tested this yet) To create a "give credits" trigger, you have to make sure you have the right edits in FSData.ini in the Final Sun folder. Under [Actions] number 106 should be: 106=Give Credits...,0,2,5,0,0,0,0,0,0,Give credits to a specific house.,1,0,106 Make this change and save if its not there. The triggers have been created with Final sun's, under Edit> trigger editor (with disabled beginner mode under Options), using 8 repeating triggers with events "Entered by" with spawn1 as parameter in the first triggers, spawn2 in the next, etc. all with Action "enable trigger", enabling each their own Trigger, the "give credits" loop, and also 7 disable all other houses credits loop. So the give credits loop need another 8 repeating triggers, Using event Time elapse, and action give credits. Make sure you have all the triggers options owner set to Neutral and repeating. Then you attach the "entered by spawn1" to your oil derricks, and in that same trigger's options attach the"entered by spawn2" trigger, and in that trigger attach spawn3, etc. You can download one of the maps i attached here, to check it out yourself and see how the trigger's work. So this how to create 1 single oil derrick and its logic, its alot of clicking i know, so I've used PTapioK's amazing time safer software "TSWaveMaker" To clone all the triggers use its ascending parameters to quickly clone them. But You could probably copy paste them (under lists actions, events, tags, triggers) and simply change the ID's (I use Notepad++, using holding alt and select the colomn i wanna change, then go to edit> column editor, that way you can quickly change a list of ID's) WHAT CAN GO WRONG? Using 2 different editor on the same file could delete your work. So Always make sure you Reload the file Each time you made an edit. Using a software like notepad++ will always ask you to reload it, Final sun does NOT. If this will crash its possible that the client you're using isn't up to date, for this is tested and working in CnCnet. I Made each oilderrick's trigger ID to start with "01L1", and the second "01L2", etc. so you should not have any trigger duplicates And once again, if you already have triggers, you have to cut/copy all content under [Tags],[Triggers],[Actions],[Events] or use my alternate way i used in the RAR attachment file Using triggers can always crash untested, and so its smart to test every little thing first. Or ever smarter, get a coach that knows alot about final sun. Me, Ptapiok, Humble, Skylegend, and many others don't mind helping you on on the discord sever https://discord.gg/CMMVFYk if you have any trouble what so ever. OTHER THEN ALL OF THAT, COPYING ALL CODES UNDER [Tags],[Triggers],[Actions],[Events] will most likely work (on CnCnet for sure). Download OILDERRICK.rar in attachment: arid chasm ion collectors.map conflict oilderricks.map GSO oilderricks.map OILDERRICK.rar Edited September 3, 2019 by Holland 2 Link to comment Share on other sites More sharing options...
Holland Posted April 6, 2019 Author Share Posted April 6, 2019 Updated Tutorial. Hopefully this can help someone Link to comment Share on other sites More sharing options...
topol Posted April 6, 2019 Share Posted April 6, 2019 (edited) I've played one map with Holland's oil derricks. It's so innovative. One can create lots of different cool scenarios with this. ?? Edited April 6, 2019 by topol Link to comment Share on other sites More sharing options...
Holland Posted April 17, 2019 Author Share Posted April 17, 2019 (edited) Updated Tutorial, it was too messy. also new attachment, Download OILDERRICKS.rar OLD MESSAGE, DOWNLOAD FROM NEXT COMMENT Edited September 2, 2019 by Holland Link to comment Share on other sites More sharing options...
Holland Posted September 2, 2019 Author Share Posted September 2, 2019 (edited) Updated this again, there was a few flaws in there, totally forgot to add the "When destroyed (or sold), Stop money income" I believe its perfect now. download attached file, im not gonna copy paste it in here since it takes up the entire page lol 8OILDERRICKS.INI Edited September 2, 2019 by Holland Link to comment Share on other sites More sharing options...
Holland Posted September 2, 2019 Author Share Posted September 2, 2019 To make it all a bit easier, here is a starting template for if u wanna make a map with oil derricks. Use this map template to make your map. The pyramids are the oil derricks, giving $85 per 10 sec, read the tutorial above on how to change it. You can also change the pyramids into ICCPP (the ion collector as shown on top of this topic) or any other building by using notepad's replace function. oilderricks template.mpr Click to download ^^ Any questions, let me know Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now