Iran Posted November 3, 2013 Share Posted November 3, 2013 This is an EXE with extended UnitTypeClass and a system to clear memory properly for the extensions. It comes with a new Crusher=(Yes/No) flag, which should be usable with everything that functions as a RULES.INI kind of file (maps etc). ; heavy tank [3TNK] Crusher=No ; Can this unit crush infantry? https://dl.dropboxusercontent.com/u/21865790/ra95.exe TODO is adding a function/system to extend TechnoTypeClass. Please test if the Crusher=(Yes/No) flag works correctly and whether the memory is cleared correctly. Link to comment Share on other sites More sharing options...
Allen262 Posted November 4, 2013 Share Posted November 4, 2013 I can do it but I don't know what your talking about when you say "whether the memory is cleared correctly" means. Link to comment Share on other sites More sharing options...
Iran Posted November 4, 2013 Author Share Posted November 4, 2013 Whether it works correctly after loading different misisons and savegames, also with the Crusher= flag on/off. Link to comment Share on other sites More sharing options...
Allen262 Posted November 4, 2013 Share Posted November 4, 2013 Okay. I tried to atttack Crusher=no to Mine layer or the Nod Buggy for Red Dawn and it did not work. My look at the ra95.exe you attached via hex editor dosn't show a Crusher key. Did you attach the wrong ra95.exe by mistake? Link to comment Share on other sites More sharing options...
Iran Posted November 5, 2013 Author Share Posted November 5, 2013 Yes, I did. My apologies. I've linked a new EXE in my opening post, this one should work correctly. Link to comment Share on other sites More sharing options...
Allen262 Posted November 5, 2013 Share Posted November 5, 2013 Crash at start up from [unitTypes] 0=DERP If I remove the [unitTypes] from the rules.ini the crash stops. With no Crusher= key in the rules.ini I made a saved game and made sure the Mine layer crushed infantry like it dose normaly. Next I exited the game and gave Mine layer Crusher=no and started a new mission and the Mine layer quit crushing infantry. Without exiting the game I load the saved game that would let the Mine layer crush infantry but the Mine layer was unable to. It looks like saved games dose not save if the unit had Crusher=no. Basically if the Crusher=no is added to a unit it will be applyed to that unit even if the unit didn't have it when the game was saved. This is also true when adding Crusher=yes to the Ranger. ra95crash.dmp.zip Link to comment Share on other sites More sharing options...
Iran Posted November 5, 2013 Author Share Posted November 5, 2013 > It looks like saved games dose not save if the unit had Crusher=no. Easy to change, is the current savegame behavior correct? For the 'DERP' crash, add a definition for the unit [Derp] to the INI. Link to comment Share on other sites More sharing options...
Allen262 Posted November 5, 2013 Share Posted November 5, 2013 Saved games are working fine. I was able to load even old Westwood 3.03s just fine. The Crusher= key is working fine with the saved game. As for the 'DERP' crash I had. I have [unitTypes] 0=DERP and the unit ; Test Unit 1 [DERP] Image=APC Prerequisite=weap,tent Primary=M60mg Strength=200 Armor=heavy TechLevel=5 Sight=5 Speed=10 Owner=allies Cost=800 Points=25 ROT=5 Tracked=yes Passengers=5 but the game crashes at start up if [unitTypes] is listed in the rules.ini. This was working fine with the .exe from the other thread. Link to comment Share on other sites More sharing options...
Iran Posted November 5, 2013 Author Share Posted November 5, 2013 It's because I extended UnitTypeClass, I made a small error with allocating new memory. Thanks for reporting this! Try this EXE: https://dl.dropboxusercontent.com/u/21865790/ra95.exe Link to comment Share on other sites More sharing options...
Allen262 Posted November 5, 2013 Share Posted November 5, 2013 Working now. Link to comment Share on other sites More sharing options...
DarkVen9109 Posted November 6, 2013 Share Posted November 6, 2013 Hmmm, nice patch for adding some new tags here. Glad to know about this one. I might re-install RA once again to test out these tags. Suggestion, make a tag tthat will allow a unit to hover. Link to comment Share on other sites More sharing options...
Echo Posted November 6, 2013 Share Posted November 6, 2013 Suggestion, make a tag tthat will allow a unit to hover. Not sure that the engine would allow that particular sorcery. From what I can see it would involve editing all of the terrain characteristics too, which is a whole new can of worms. Link to comment Share on other sites More sharing options...
Allen262 Posted November 6, 2013 Share Posted November 6, 2013 Maybe not as hard as you would think Echo. Tib Sun was build from RA1. The work Iran has done in the Unhardcoded internal (type) lists thread is also what WestWood did for Tib Sun. I never expected Iran to duplaced any thing from Tib Sun but there is hope that a number of things from Tib Sun could be done in RA1 now. This could be one that could be done. I know Tracked= [yes/no] is a current key in RA1 If Iran could make clone of Tracked= logic and name it Hovers= [yes/no] half the prob would be done. Land characteristics is definded in the rules.ini at ; ******* Land Characteristics ******* I'll quote one of the land characteristics. ; ******* Land Characteristics ******* ; This section specifies the characteristics of the various ; terrain types. The primary purpose is to differentiate the ; movement capabilities. ; Float = % of full speed for ships [0 means impassable] (def=100) ; Foot = % of full speed for foot soldiers [0 means impassable] (def=100) ; Track = % of full speed for tracked vehicles [0 means impassable] (def=100) ; Wheel = % of full speed for wheeled vehicles [0 means impassable] (def=100) ; Buildable = Can buildings be built upon this terrain (def=no)? [Clear] Foot=90% Track=80% Wheel=60% Float=0% Buildable=yes As you can see the clear land characteristic each movement type is listed. In Tib Sun 2 new movement types were added Amphibious = and Hover =. If Iran can clone the Track= and name it Hover= than tie it back to the Hovers= key that is attached to a unit we would have a working hover logic. Link to comment Share on other sites More sharing options...
Iran Posted November 7, 2013 Author Share Posted November 7, 2013 Those are called LandTypes internally and it should be possible to add new ones. Could you test if modifying an existing landtype allows for hover behavior? Link to comment Share on other sites More sharing options...
DarkVen9109 Posted November 7, 2013 Share Posted November 7, 2013 Are you guys using C# orr any programming language to test out some tags? Link to comment Share on other sites More sharing options...
Iran Posted November 7, 2013 Author Share Posted November 7, 2013 No we're using a version of the ra303p patch with support for an additional Crusher= flag for vehicles, for anything which acts like a RULES.INI file ingame (e.g. map INI files) Link to comment Share on other sites More sharing options...
Allen262 Posted November 7, 2013 Share Posted November 7, 2013 Those are called LandTypes internally and it should be possible to add new ones. Could you test if modifying an existing landtype allows for hover behavior? I know it was done once. A mod called RA2TS or RA to Tiberian Sun http://cnc-comm.com/community/index.php?topic=2177.0 made all of the ships into hover units by using Float=100% on all Land Characteristics. This was slightly flawed since the Hover MLRS could go over any thing like walls cliffs and rocks but had to be done or the JumpJet Infantry couldn't fly over walls cliffs and rocks. If you are able to do Hover set up it would also be nice if you could do a Fly set up as well. JumpJet Infantry in RA would be somthing else. :laugh: but that dose have the flaw of SAM Sites and AA Guns wound't shoot at it since to the game the guy is on the ground.... Link to comment Share on other sites More sharing options...
Iran Posted November 7, 2013 Author Share Posted November 7, 2013 Can't you just edit the default RULES.INI values to set float to 100% on land types? Link to comment Share on other sites More sharing options...
Iran Posted November 7, 2013 Author Share Posted November 7, 2013 If someone could try doing tank clones and giving countries their own tanks using Owner= with a country name that could be interesting. Link to comment Share on other sites More sharing options...
Allen262 Posted November 7, 2013 Share Posted November 7, 2013 Can't you just edit the default RULES.INI values to set float to 100% on land types? Yes that was done in RA2TS and it worked fine but RA2TS had to sacrifice all ships to do so. This also ment thing like the Hover MLRS that should have been built at the War Factory was built at some other building. If someone could try doing tank clones and giving countries their own tanks using Owner= with a country name that could be interesting. Owner=country always did work. Now that more tanks can be added to one country. Link to comment Share on other sites More sharing options...
DarkVen9109 Posted November 23, 2013 Share Posted November 23, 2013 Hoping I could download to test out some tags even clicking the new link Iran just gave, I got this... Error (404) We can't find the page you're looking for. Check out our Help Center and forums for help, or head back to home. Link to comment Share on other sites More sharing options...
Allen262 Posted November 23, 2013 Share Posted November 23, 2013 Here try this. I'm including a set of rules.ini that has the new keys in listed in the rules. It also has the keys and code shown in the Unhardcoded internal (type) lists thread http://cnc-comm.com/community/index.php?topic=2603.0 and these keys and codes work fine. NewType_RA95.zip Link to comment Share on other sites More sharing options...
AchromicWhite Posted December 13, 2013 Share Posted December 13, 2013 If someone could try doing tank clones and giving countries their own tanks using Owner= with a country name that could be interesting. Funny you say that, if you keep hacking this enough, I'll make my mod have all countries with different units. 2 Major teams still, but then with some little different additions and subtractions to each. I really want to be able to have people play as USA and get M1A1 and England and get Challengers. Still, you're a little off allowing my mod to be implemented... but not that far. Mostly turret placement logic, that's the big one. To say if the turret is offset like a ranger, or if the turret is on the rear, like a mobile gap. Not sure if you've read over the massive ARDA list of stuff that Alex_B put in, but you've hit the main points, good stuff -Liam Link to comment Share on other sites More sharing options...
Jacko Posted December 13, 2013 Share Posted December 13, 2013 the only problem with adding new units is that everybody playing will need the new .shp files and sounds (if you added them) Link to comment Share on other sites More sharing options...
Allen262 Posted December 13, 2013 Share Posted December 13, 2013 That is not a prob. 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