:: 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 Fri Jul 20, 2018 12:56 pm
All times are UTC + 0
 Forum index » Modding Central » Tiberian Sun Editing Forum » Tutorials Factory
How to give tiberium proper radar colors
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [24 Posts] View previous topic :: View next topic
Author Message
Bittah Commander
Defense Minister


Joined: 21 May 2003
Location: The Netherlands

PostPosted: Sat Oct 14, 2006 12:12 am    Post subject:  How to give tiberium proper radar colors Reply with quote

This Tutorial is rated 4 star ****

I finally figured out the mystery on how to change the radar color of tiberium, which should be useful for alot of mods. Here's how to do it:

Open the SHP of the tiberium (tib##.tem or tib##.sno, ## being a number from 01 to 20) in a hex editor and search for "03 00 00 00 00 00 00" (it should work either with or without spaces).
If you didn't get any results, try looking for "03 00 00 00 00 00 07" instead and if you still don't get any results, just leave the last number away, because it might vary sometimes (do not forget it's part of the number you'll need to replace however).

You should've gotten 12 results, like on the screenshot. The last 6 0's (3 groups of 2 0's) are a hex RGB code which tells the game which color it should display on the radar; the first result is for the first frame, the second result is for the second frame and so on.

Now change those last 6 0's of each result into the RGB hex code of the color you want. You can find the RGB hex code in the color picker of most image editing programs (paint doesn't have one though), I used Photoshop.


Now save it and repeat this for every SHP of the tiberium.

Key Words: #Tutorials #SHPs #Media #TiberianSun #Firestorm #RedAlert2 #YurisRevenge #OpenRA #HexEdit 

_________________

Last edited by Bittah Commander on Sat Aug 27, 2016 4:01 pm; edited 2 times in total

Back to top
View user's profile Send private message Send e-mail ModDB Profile ID YouTube User URL Facebook Profile URL
KajiTetsushi
Vehicle Driver


Joined: 13 Oct 2006

PostPosted: Sat Oct 14, 2006 10:40 am    Post subject: Reply with quote

Hey... that's pretty cool.

Back to top
View user's profile Send private message Visit poster's website
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sat Oct 14, 2006 2:23 pm    Post subject: Reply with quote

What hex editor is that Question
_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Bittah Commander
Defense Minister


Joined: 21 May 2003
Location: The Netherlands

PostPosted: Sun Oct 15, 2006 12:46 pm    Post subject: Reply with quote

010 Editor
_________________

Back to top
View user's profile Send private message Send e-mail ModDB Profile ID YouTube User URL Facebook Profile URL
Nyerguds
General


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

PostPosted: Fri Oct 20, 2006 7:46 pm    Post subject: Reply with quote

Brilliant... I'm going to fix the ROTD tiberium right away Very Happy

[edit]

Woo, done! This is awesome Very Happy

For my first test, I used the same color you selected there, namely "54B024". (this was a pure coincidence though, since I took it from C&C1 tib radar color)
The color turned out to be good for green, but when the game transpolates it to blue tiberium, it comes out all purple.

So in the end, I opened one of the game's original tiberium SHP files and took the value "18 9F 18" from one of its last frames. It gave a much better result.


purpleblue.jpg
 Description:
The purple spot you see in the lower left corner is in fact blue tiberium...
 Filesize:  4.89 KB
 Viewed:  23905 Time(s)

purpleblue.jpg



_________________

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


Joined: 19 Oct 2005
Location: Russia, Voskresensk

PostPosted: Sat Oct 21, 2006 2:29 pm    Post subject: Reply with quote

Will this work in RA2?
_________________
Sealab 2021 wrote:
Marco: So you rigged the OFF button with a tear gas grenade? Ho ho ho, you magnificent bastard!
Sparks: Oh, that's nothin', man. The ON button is a 50-megaton hydrogen bomb.

Back to top
View user's profile Send private message Send e-mail
Nyerguds
General


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

PostPosted: Sat Oct 21, 2006 5:47 pm    Post subject: Reply with quote

Does the same problem even exist in RA2?
_________________

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


Joined: 19 Oct 2005
Location: Russia, Voskresensk

PostPosted: Sun Oct 22, 2006 2:46 pm    Post subject: Reply with quote

in RA2 ore is yellow on radar, but we need it to be green, that is our problem.
_________________
Sealab 2021 wrote:
Marco: So you rigged the OFF button with a tear gas grenade? Ho ho ho, you magnificent bastard!
Sparks: Oh, that's nothin', man. The ON button is a 50-megaton hydrogen bomb.

Back to top
View user's profile Send private message Send e-mail
Nyerguds
General


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

PostPosted: Sun Oct 22, 2006 3:55 pm    Post subject: Reply with quote

right, but if it stays yellow, I'm pretty sure it's not realtive to the SHP file.

Anyway, I made a little something to help all tiberium-editing folks here:


Tiberium editing macro


For those unfamiliar with Win3.1's old Macro Recorder...
Macro Recorder is a program that can record and replay actions you perform in programs. Once a macro is recorded, you simply need to open the .rec file in Recorder and leave it open in the background. When pressing the shortcut combination associated with the macro, the actions you recorded will be replayed in the current program.

Using this principle, I've recorded 2 macros to edit the tiberium SHP files in a hex editor.

What the macro does is simple... it recreates the complete list of color values for each frame as they are in the original tib02.shp of Tiberian Sun.
It does this simply by typing the HEX values, moving 21 bytes to go to the next position, then typing in the next batch of values, moves 21 bytes on again, etc.

This will give the tiberium you made the same density-relative radar color as the original TS tiberium, with slightly different colors for each frame.


INSTRUCTIONS:

1. Start recorder.exe
2. In Recorder, open the file TIBHEX.REC
You'll see two possible macros; one is 1-step, the other is 2-step. This depends on how your HEX editor reacts on the arrow keys.
If one push on the [->] arrow moves your cursor to the next byte, use the 1-step macro (ctrl+F6). If you need to press the [->] arrow twice to move to the next byte, you need to use the 2-step macro (ctrl+F7).

3. Leave the Recorder program open and open your hex editor.
4. Open the tiberium SHP file and go to the first byte you need to change. This is the first of the 3 color values of the 1st frame.
5. press ctrl+F6 (or ctrl+F7 if you have a 2-step hex editor).
In a few seconds, The macro will type in all 12 values on their correct place.
6. Save the file.

So like this, all you need to do is open a tiberium SHP file, position your cursor on the right byte, press the shortcut combination, save, and repeat that for all tiberium files you got.


I hope you'll find this useful Smile


TIBHEX.rar
 Description:
the complete package of the Win3.11 recorder + the macro file

Download
 Filename:  TIBHEX.rar
 Filesize:  37.8 KB
 Downloaded:  1062 Time(s)


_________________

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


Joined: 05 Jan 2003
Location: Ohio, USA

PostPosted: Mon Oct 23, 2006 1:05 pm    Post subject: Reply with quote

This fix can also be used to repair the Tiberium Veins radar color aswell. Just replace the first 61 instances of 00 00 07 (in my case) with color of your choice.

Thanks Bittah Commander!

Triforce


Veins Radar Fix.png
 Description:
 Filesize:  110.42 KB
 Viewed:  23819 Time(s)

Veins Radar Fix.png



_________________
The Cake is a Lie!!!
The Cake is a Lie!!!
The Cake is a Lie!!!

Back to top
View user's profile Send private message Send e-mail Visit poster's website Skype Account AIM Address
Nyerguds
General


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

PostPosted: Mon Oct 23, 2006 9:11 pm    Post subject: Reply with quote

nice colour Smile

Makes the veins much more visible.
_________________

Back to top
View user's profile Send private message Visit poster's website Skype Account
Bittah Commander
Defense Minister


Joined: 21 May 2003
Location: The Netherlands

PostPosted: Tue Oct 24, 2006 12:23 am    Post subject: Reply with quote

I entirily forget there ever was anything wrong with the tiberium veins #Tongue
I gues I got used to over time Rolling Eyes

By the way, an easy way to get a good matching color for tiberium, tiberium veins, ice, trees or of whatever you're editing the radar color of is by pasting a part of the SHP in the TMP editor, opening the propperties window and clicking the AutoColors button. Now the TMP editor 'll give you left radar color and a right radar color (the same as high radar color and low radar color), but seeming the SHP you're editing the radar color of doesn't use this, you'll have to take the color exactly in between those colors (I don't need to tell you how to calculate it, do I? #Tongue).

Now just do what you'd normally do; enter thease RGB values in the color picker of photoshop (or any other image editing program that shows a HEX RGB code in the color picker), copy the HEX RGB value and insert into the SHP with the a hex editor.
_________________

Back to top
View user's profile Send private message Send e-mail ModDB Profile ID YouTube User URL Facebook Profile URL
Nyerguds
General


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

PostPosted: Tue Oct 24, 2006 4:39 am    Post subject: Reply with quote

umm, there's anything wrong with em? I just looked in TS, and they're orange on radar all right... they're only black on the multiplayer map preview when you select it.
_________________

Back to top
View user's profile Send private message Visit poster's website Skype Account
Bittah Commander
Defense Minister


Joined: 21 May 2003
Location: The Netherlands

PostPosted: Tue Oct 24, 2006 8:31 pm    Post subject: Reply with quote

Oh, I thought the tiberium veins was also black on the radar ingame. Haven't played on a map with tiberium veins on it in a long while #Tongue
_________________

Back to top
View user's profile Send private message Send e-mail ModDB Profile ID YouTube User URL Facebook Profile URL
Nyerguds
General


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

PostPosted: Thu Oct 26, 2006 8:48 am    Post subject: Reply with quote

lol, Triforce, you could've tested that first... or at least bother to look up the color of the values you've been replacing in the SHP file then Laughing

So... DID it fix the black color on the preview?
_________________

Back to top
View user's profile Send private message Visit poster's website Skype Account
korupT^
Civilian


Joined: 17 Jul 2007

PostPosted: Mon Jul 23, 2007 3:21 am    Post subject: Reply with quote

I'm sorry to bump old topics but I'm new here. I was wondering how and if there is a way to change the radar color of Aboreus///burgundy tiberium, so its not blue and blends in on the radar with blue tiberium. What files would i open, which tib##, thanks.

Back to top
View user's profile Send private message
Judeau
Commander


Joined: 28 Feb 2004

PostPosted: Fri Nov 30, 2007 3:45 pm    Post subject: Reply with quote

Nyerguds wrote:
lol, Triforce, you could've tested that first... or at least bother to look up the color of the values you've been replacing in the SHP file then Laughing

So... DID it fix the black color on the preview?


sorry for long bump, just want to clear something up.

the map select skreen minimaps are premade during map creation.
_________________
Micro TS
Portable, no campaign, movies or music, just the engine and needed resources for skirmish and lan.

Back to top
View user's profile Send private message Send e-mail Skype Account
Nyerguds
General


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

PostPosted: Fri Nov 30, 2007 4:28 pm    Post subject: Reply with quote

sooo... that means the original TS had that colour bug for the veins at the moment the TS team was making the multiplayer maps, then?

Then again, there was never an official map editor for TS, so there's no real way to be sure about that.
_________________

Last edited by Nyerguds on Sat Jun 25, 2011 10:47 pm; edited 1 time in total

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 May 08, 2008 8:09 am    Post subject: Reply with quote

Just thought it'd be better to at least post this here in case anyone looks this up, since Icy didn't post it in the C&C Tools section...

TS/RA2 SHP Radar Colour Editor
_________________

Last edited by Nyerguds on Tue Aug 04, 2009 8:44 pm; edited 1 time in total

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


Joined: 16 Aug 2006
Location: Germany

PostPosted: Thu May 08, 2008 10:09 am    Post subject: Reply with quote

That's a very useful tool. Though a little late for me, since i didn't knew it was there and i edited my red tiberium yesterday by hand. #Mad But in future i'll use the editor,since it's much faster.


LKOtiberium.zip
 Description:
red tiberium has red radar color (with code example)
veins with orange radar color and removed ground between the veins

Download
 Filename:  LKOtiberium.zip
 Filesize:  109.93 KB
 Downloaded:  686 Time(s)


_________________
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
Nyerguds
General


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

PostPosted: Thu May 08, 2008 7:02 pm    Post subject: Reply with quote

Well, it's been posted in the main news... if it were up to me I'd put it in the C&C Tools forum instead -_-

Maybe I should still do that? I dunno... don't really like making the same topic twice.

As for your uploads....
-doesn't red tiberium have red radar colour anyway? It adapts just like blue tib, as far as I know.
-The veins already have an orange radar colour.
_________________

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


Joined: 16 Aug 2006
Location: Germany

PostPosted: Thu May 08, 2008 10:29 pm    Post subject: Reply with quote

Nyerguds wrote:

-doesn't red tiberium have red radar colour anyway? It adapts just like blue tib, as far as I know.

i made aboreus red in rules.ini but it was still blue on the radar.
Nyerguds wrote:
-The veins already have an orange radar colour.

yes, but i edited them to take the ground away and left only the veins. like here. due to this editing they became black on the radar.
_________________
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
YuriX
Medic


Joined: 14 Jan 2006

PostPosted: Sat May 10, 2008 1:15 pm    Post subject: Reply with quote

oh, good.
Those bytes are unkown to me(my program uses shp so I'd better know more about it). Thanks.

And the "03 00 00 00" means the shp frame is compressed. (Uncompressed if they are all 0)

Before it are the frame's width, height, distance from left-top point to the left border and the top border of the shp. Each of them uses 2 bytes.

The first 8 bytes in a shp is the file header.
the first 2 bytes seem to be 0 always, then width, height and the amount of frame after(each of them uses 2 bytes).

But there is still one unknown byte just after the radar color.

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


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

PostPosted: Sat May 10, 2008 9:26 pm    Post subject: Reply with quote

Lin Kuei Ominae wrote:

yes, but i edited them to take the ground away and left only the veins. like here. due to this editing they became black on the radar.

Ahh. Well, that's exactly why I made my "store colours" & "save stored" functions.
_________________

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 [24 Posts] View previous topic :: View next topic
 Forum index » Modding Central » Tiberian Sun Editing Forum » Tutorials Factory
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot 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

Wildcard SSL Certificates
[ Time: 1.2555s ][ Queries: 15 (0.8800s) ][ Debug on ]