:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::

Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Mon Oct 26, 2020 6:57 pm
All times are UTC + 0
 Forum index » PPM Zone » PPM News Network
New Tiberian Sun engine hacks are now available!
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [8 Posts] View previous topic :: View next topic
Author Message
Banshee
Supreme Banshee


Joined: 15 Aug 2002
Location: Brazil

PostPosted: Tue Sep 08, 2020 7:36 am    Post subject:  New Tiberian Sun engine hacks are now available!
Subject description: Smarter AI harvesters, vehicle transports, oil derricks and things beyond the vision of Kane!
Reply with quote

We have some interesting resources on our Tiberian Sun Research Center (registered users only) that was recently posted by Rampastring. Thanks to the source code from Red Alert, Rampastring was able to tweak areas of Tiberian Sun that had identical code (or almost identical). And, with that knowledge, he has posted some interesting patches to improve the TS engine. Here's his words on it:

Quote:
With the release of the RA source code, I've studied the TS code more as well and noticed that a lot of the game logic code is identical between TS and RA. This has made it a lot easier to write hacks for the TS engine, as when researching something I can take a look at the equivalent logic in RA and figure out how it works from the documented C++ source code and then match the code to x86 ASM instead of having to figure out the ASM from the ground up. That is when an equivalent logic exists in RA; if a logic does not exist (like particles), then the RA source is of no help.

So far I've written the following notable bugfixes and enhancements in the past few months:


   Smarter harvester AI (demonstration: https://www.youtube.com/watch?v=7G_IQiQ346Q )
   Smarter AI fire-sale
   Sidebar cameo sorting
   Mechanics (like in RA1)
   Fixing AI unit scatter when the AI produces vehicles from a factory that has WeaponsFactory=no
   Oil Derricks (like in RA2)
   Vehicle transports (like in RA1)



You are free to use these enhancements in any projects. Although if you do, it's appreciated if you credit myself and Dawn of the Tiberium Age. To make use of these with your mod, you have to compile the spawner with these source files included in the Makefile.

Also, big thanks to CCHyper for providing me information that has helped with many of these hacks.

More are likely coming.


The smarter AI video was posted on the DTA news below, but we can repeat it here:







If you are interested, register on our forums. You won't get spammed ro anything, so don't worry. Once you are logged in, visit this topic to view all the recent asm codes.

In order to use them, you need to clone and compile the CnCNet TS-patches project.

Key Words: #News #TiberianSun #Firestorm #CnCExecutableModifier 

Last edited by Banshee on Tue Sep 08, 2020 11:52 pm; edited 2 times in total

Back to top
View user's profile Send private message Visit poster's website Skype Account
Crimsonum
Seth


Joined: 14 Jul 2005
Location: Fineland

PostPosted: Tue Sep 08, 2020 8:21 am    Post subject: Reply with quote

I'm delighted to see the source code release utilized in TS modding to such an extent, in such a short time. Kudos Rampa.
_________________


Back to top
View user's profile Send private message Visit poster's website
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Tue Sep 08, 2020 9:21 am    Post subject: Reply with quote

yeah, that's some awesome work there.
it's one thing to understand and change the C++ code, but a whole new level of amazing when being able to understand and translate that into the equivalent assembler code, necessary for the disassembled TS engine. Rating 10 out of 10! Perfect!  Applauses!  Approved!
_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Saref
Grenadier


Joined: 26 Nov 2008
Location: Earth

PostPosted: Tue Sep 08, 2020 5:12 pm    Post subject: Reply with quote

Aaand... How to use it in mod?

Back to top
View user's profile Send private message
^Rampastein
Rampastring


Joined: 11 Oct 2008
Location: Gensokyo

PostPosted: Tue Sep 08, 2020 10:49 pm    Post subject: Re: New Tiberian Sun engine hacks are now available! Reply with quote

Banshee wrote:
Once you are logged in, visit this topic to view all the recent asm codes and apply them with C&C Executable Modifier.

It doesn't quite work that way with these patches, they're not simple hex changes. Instead you need to clone and compile the CnCNet TS-patches project.

Technically, when compiling the project, the vanilla TS 2.03 game.exe is broken into sections, extended with a new code section, all the new code is compiled and added to the new section and then the EXE is "re-compiled" with that section included and the original code modified in the right places to point to code in the new section. The hacks that this system allows to make would be impossible to implement with pure hex changes as the new logic in the hacks takes up more bytes and wouldn't fit in the original, non-extended TS executable.
_________________
CnCNet Client | CnCNet TS patches | More Quality-of-Life Improvements for RA Remastered


Back to top
View user's profile Send private message ModDB Profile ID Facebook Profile URL
Banshee
Supreme Banshee


Joined: 15 Aug 2002
Location: Brazil

PostPosted: Tue Sep 08, 2020 11:52 pm    Post subject: Reply with quote

Ok, thanks for the clarification. I've updated the news post with what you just said.

Back to top
View user's profile Send private message Visit poster's website Skype Account
Saref
Grenadier


Joined: 26 Nov 2008
Location: Earth

PostPosted: Thu Sep 10, 2020 6:49 am    Post subject: Reply with quote

I hope someone will make these improvements to TS so everyone can use it.

Back to top
View user's profile Send private message
Team Black
Defense Minister


Joined: 25 Sep 2006
Location: Teamblackistan Posts: Over 9000

PostPosted: Thu Sep 10, 2020 4:15 pm    Post subject: Reply with quote

Excellent stuff! Looking forward to seeing what capabilities this can bring.
Buildable dropships that hold vehicles would warm my fanboy heart
_________________
The Fall of Hammerfest - Epic Tiberian chain story

Tiberian Odyssey mapping department. Discord
The Team Black Index

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [8 Posts] View previous topic :: View next topic
 Forum index » PPM Zone » PPM News Network
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1215s ][ Queries: 10 (0.0031s) ][ Debug on ]