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


The time now is Fri Mar 29, 2024 6:23 am
All times are UTC + 0
CnC and C# Help
Moderators: Community Tools Developpers
Post new topic   Reply to topic Page 1 of 1 [8 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
minibond
Rocket Cyborg


Joined: 01 Aug 2009
Location: Rome, Italy

PostPosted: Sat Aug 01, 2009 4:38 pm    Post subject:  CnC and C# Help
Subject description: Editing CnC by C#.
Reply with quote  Mark this post and the followings unread

Hi, I'm new to this forum and i program in C#.
Sorry for my english errors, I'm Italian.
I'm making some applications in C# and I want to make one that can edit some Command & Conquer (Tiberian sun) files, but I don't know how to do it.
How can I open and Save SHP and MIX files in C#?

_________________
It's 1000 times better a broken XBox 360 than a brand new PS3!


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


Joined: 16 Aug 2006
Location: Germany

PostPosted: Sat Aug 01, 2009 11:01 pm    Post subject: Reply with quote  Mark this post and the followings unread

All tools are open source (SHP Builder, VSEIII). You can download the tools with the source code and look how they load the files so you know how the header and file format works.
Then write your own file parser and read the files.

However I don't know if there's also a public code for loading/saving mix files.

_________________
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
Banshee
Supreme Banshee


Also Known As: banshee_revora (Steam)
Joined: 15 Aug 2002
Location: Brazil

PostPosted: Sun Aug 02, 2009 5:59 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yes, there are public codes to load and save mix files at xhp.xwis.net

The problem is that it is very hard to understand them and translate them into a programming language that does not uses pointers (like C#).

Back to top
View user's profile Send private message Visit poster's website Skype Account
Dark Templar X
Commander


Joined: 26 Feb 2009

PostPosted: Sun Aug 09, 2009 2:56 am    Post subject: Reply with quote  Mark this post and the followings unread

You can use pointers in C#; but you need to use unsafe code.

Back to top
View user's profile Send private message
minibond
Rocket Cyborg


Joined: 01 Aug 2009
Location: Rome, Italy

PostPosted: Wed Sep 30, 2009 9:35 pm    Post subject: Reply with quote  Mark this post and the followings unread


_________________
It's 1000 times better a broken XBox 360 than a brand new PS3!


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


Also Known As: banshee_revora (Steam)
Joined: 15 Aug 2002
Location: Brazil

PostPosted: Wed Sep 30, 2009 10:26 pm    Post subject: Reply with quote  Mark this post and the followings unread

This is very old and the documentation only covers Tiberian Dawn and Red Alert 1, except for the .pal files that are also used on Tiberian Sun and Red Alert 2.

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


Joined: 24 May 2004
Location: Flanders (Be) Posts:300000001

PostPosted: Thu Jan 14, 2010 11:52 am    Post subject: Reply with quote  Mark this post and the followings unread

Maybe you can use that to fix your TD SHP writer then? #Tongue

_________________

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


Also Known As: banshee_revora (Steam)
Joined: 15 Aug 2002
Location: Brazil

PostPosted: Fri Jan 15, 2010 10:56 pm    Post subject: Reply with quote  Mark this post and the followings unread

One day I'll fix it.. this kind of stuff is very boring... lol

Back to top
View user's profile Send private message Visit poster's website Skype Account
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [8 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
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.1495s ][ Queries: 11 (0.0081s) ][ Debug on ]