:: 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 Sat Oct 23, 2021 1:46 am
All times are UTC + 0
 Forum index » Modding Central » Red Alert 3 Editing Forum
Presenting a revolution in SAGE UI editing
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
jonwil
Rocket Infantry


Joined: 24 Jul 2005

PostPosted: Sat Sep 18, 2021 1:25 am    Post subject:  Presenting a revolution in SAGE UI editing Reply with quote  Mark this post and the followings unread

I am releasing a set of tools that makes editing UI for C&C3 and RA3 much easier than trying to hex edit APT files or hack up xml files via apt2xml and xml2apt.

You can download the tools from
https://mega.nz/file/T0VxHahQ#JxN-3Dk86NZS1PLCWVEQl4ZK3gXrh9w7MWqqoU_XdNk
You can get the source code from
https://github.com/jonwil/swf2apt

You will also need this UI pack for C&C3
https://mega.nz/file/eosinBZC#NlD3gMfpERZUhjTBg4M8Xrk6-tdDqtT8qVBMmtkv6Go

Or this UI pack for RA3
https://mega.nz/file/Po1EDRaS#u4gW9wVeqOH5VUudgeg9bCTZ5pfapZ8XoRE6dT0XErA

Both packs contain source swf files for the UI made from the eaf files released by EA. The C&C3 pack contains a fixed version of the TacticalHUD UI file modified to match the version in the game as of the final patch and the RA3 pack contains a fixed version of the igm_pausemenu UI file modified to match the version in the game as of the final patch (note that some of the geometry in the igm_pausemenu UI file exports slightly differently to what's in the final patch but that will make no difference to how it works in-game)

To use it, you need to:
1.Download the program and unpack it into a location of your choosing
2.Download the right UI pack for the game you want to mod
3.Figure out which UI element you want to edit
4.Take the .swf file from that UI element and edit it with a tool that edits Flash swf files (no I am not going to provide a tutorial here on how to edit swf files)
5.Once you have an edited swf file, you run "eaf2apt <filename> --optimize" where <filename> is the name of the swf file. Add "--ra3" after  "--optimize" if you are building for RA3 (or Uprising)
6.That will generate a set of files you can include in your mod. If you don't know how to use UI stuff in your mod, this tool probably isn't for you...

Some notes:
It is not currently possible to go from APT back to EAF/SWF.
It is not possible to edit the APT files of other games (including Kane's Wrath and Uprising) since we do not have source EAF/SWF files for those (this includes re-using APT from Kane's Wrath or Uprising in C&C3 or RA3)
However, the output from the tool IS compatible with Kane's Wrath and Uprising (e.g. if you created a new swf file or edited an existing one from the above linked UI packs and then wanted to use the results in Kane's Wrath or Uprising).
As of right now the tool does not package multiple textures into a single texture (EALA had a tool called ImagePacker.exe that did it but as of yet I haven't been able to come up with something that can do the same job). Everything will still work in-game though.

Feel free to modify the source code and to distribute your modifications but if you distribute modified binaries you also need to distribute modified source code (at least for eaf2apt) and I would appreciate a heads up that you are doing things with my code Smile

Any questions about this stuff or how to use it (e.g. if the instructions aren't clear), please feel free to post here or hit me up on Discord (I am "Jonathan Wilson" on most of the C&C/SAGE/modding discords)

If you want to know more about how this works internally, read the source code (or ask me questions on Discord Smile

Back to top
View user's profile Send private message
jonwil
Rocket Infantry


Joined: 24 Jul 2005

PostPosted: Sat Sep 18, 2021 1:39 am    Post subject: Reply with quote  Mark this post and the followings unread

Oh and no I don't know what the best tool for editing SWF files in 2021 happens to be. But if anyone else knows, feel free to suggest it here Smile

Back to top
View user's profile Send private message
Banshee
Supreme Banshee


Joined: 15 Aug 2002
Location: Brazil

PostPosted: Sun Sep 19, 2021 5:29 pm    Post subject: Reply with quote  Mark this post and the followings unread

Jonwil, if you don't mind, I've mirrored these files at PPM:

The SWF tool:

https://www.ppmsite.com/download/swf2apt.7z/

The UIs

https://www.ppmsite.com/download/cc3ui.7z/
https://www.ppmsite.com/download/ra3ui.7z/

Back to top
View user's profile Send private message Visit poster's website Skype Account
jonwil
Rocket Infantry


Joined: 24 Jul 2005

PostPosted: Wed Sep 22, 2021 11:57 pm    Post subject: Reply with quote  Mark this post and the followings unread

I released a new version.
Get it here
https://mega.nz/file/is0DiQDQ#Tf86BR5o5snJUA1XQzJuzlnB7KJBo4X1vs-HOS-laeM

Source code has been updated.

I changed the error message you get if you run it and it detects a texture in a format it doesn't support so that it prints out which character in the swf file is the one with the texture it can't handle.
I also changed it so that it will now produce correct output if the input filename passed to the program contains a path.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
 Forum index » Modding Central » Red Alert 3 Editing Forum
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 can 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.1458s ][ Queries: 11 (0.0064s) ][ Debug on ]