logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,617
Total Threads: 8,723
Posts: 95,213

Administrators:
DeeZire, Redemption

There are currently 28 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Red Alert 2 & Yuri's Revenge Editing Discuss any modding related issues to do with Red Alert 2 and Yuri's Revenge here.

Reply
 
LinkBack Thread Tools
Old 12-19-2004, 01:32 PM   #1 (permalink)
Senior Member
 
Join Date: Jul 2003
Location: Lithuania, Central Europe
Posts: 1,057
Send a message via MSN to DCoder
Default Country problems - be advised (long post)

WestWood coders were total morons. Yeah, so what else is new?
This time I'm extremely pissed over their country listings.
Here's a recap of what we know so far:
* The flag order is hardcoded (#1 is usai.pcx, #2 is japi.pcx, etc.) Those names are hardcoded in the .exe.
* The country list is not hardcoded - it builds a list of all countries in the order you list them in the [Countries]. No apparent problem here, but hold on, it gets better.
* The tooltips ("Britain can train Snipers, USA can drop paratroopers, etc") are hardcoded. Actually, the csf file data names are. (#1 is loadbriefshort: USA, #2 is loadbriefshort:korea, etc.) It does not obey the [Countries] ordering.
* The loading screen's top string name is hardcoded the same way. #1 is name:apara, #2 is name:beagle, etc. If you modify the units, you need to modify these strings too.
* The lower string in the loadscreen is also hardcoded. #1 is loadbrief:usa, #2 is loadbrief:korea, etc.
* The loading screen image is also hardcoded. #1 is ls800ustates.shp, etc. Same for the palettes.

Now for the newsflash:
* The country name in the lower right corner of the lscreen is hardcoded. It does not follow the [Countries] ordering. #1 is always name:americans, #2 is name:alliance, etc. After spending 45 minutes to sort out all the string/shp problems after moving Korea and Cuba to Yuri's side, I notice this.
Gawd, I hate those lazy morons.

To conclude, it is impossible to reorder the [Countries] list and have no visual bugs. You need to resort to changing the strings and ownerships much more than you would need after the [Countries] reordering.

P.S. All the previously mentioned "harcoded" items can be modified in the exe.
For example, it is possible to patch the exe to take different flag names (even flg0.pcx, flg1.pcx etc.. would be better IMO) , [which is a 10 second job], and different csf strings.
But this way, you need to distribute a patcher with your mod, which bites. And can interfere with The Project's patcher, or uninstalling the mod.

If you think this can be used as a tutorial somewhere like modEnc, go ahead.
DCoder is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-19-2004, 01:40 PM   #2 (permalink)
Senior Member
 
Join Date: Oct 2004
Posts: 250
Default

...WestWood coders were total morons. Yeah, so what else is new? ...

When I don't blame coders for being morons... (which hey, is often the case in so many circumstances it's not funny)... I'll blame management for fucking everything up. Consequence is the same, though. :-)

C//
Courageous is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-20-2004, 05:32 AM   #3 (permalink)
Senior Member
 
AlliedG's Avatar
 
Join Date: Sep 2003
Location: U.K.
Posts: 726
Default

not enough time and not enough pay
AlliedG is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-20-2004, 10:48 AM   #4 (permalink)
Senior Member
 
Join Date: Jan 2003
Location: Hamburg, Germany
Posts: 2,208
Send a message via ICQ to Renegade
Default

I thought EA-employees did nothing but working? (EA spouse *hint* *hint*)
Renegade is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-20-2004, 04:36 PM   #5 (permalink)
Senior Member
 
Join Date: Nov 2004
Posts: 295
Send a message via MSN to NineBreakerFan
Default

yeah westwoods code is total crap. i mean why is the allied patriot missile NASAM?
NineBreakerFan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-20-2004, 11:46 PM   #6 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: USA
Posts: 1,858
Send a message via ICQ to Kravvitz Send a message via AIM to Kravvitz Send a message via MSN to Kravvitz Send a message via Yahoo to Kravvitz
Default

A lot of the internal names are leftovers from TS.
Kravvitz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-20-2004, 11:58 PM   #7 (permalink)
Senior Member
 
Join Date: Oct 2004
Posts: 250
Default

Perhaps some O'Reilly will publish _Refactoring For Dummies_?

NBK's right; that's terrible sloppiness. In my many years of experience, this is /USUALLY/ the sign of a bunch of coders attempting to skitter arround a code base they are basically afraid of, worried they might break it.

For your reading pleasure:

http://www.refactoring.com/

http://agilemanifesto.org/

http://www.extremeprogramming.org/

C//
Courageous is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-21-2004, 07:09 PM   #8 (permalink)
Senior Member
 
Join Date: Dec 2002
Location: Brazil
Posts: 168
Default

They weren't morons, DCoder. Remember that RA2 was not made to have modding support and since these values you mentioned above would never change for them, they didn't need to place them in ini files for the designers.

But I agree that it would be much better to put this kind of thing in an ini file... pitty that it won't be done
Banshee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-22-2004, 07:02 AM   #9 (permalink)
Senior Member
 
Join Date: Jan 2003
Location: Hamburg, Germany
Posts: 2,208
Send a message via ICQ to Renegade
Default

Even if they weren't supposed to be edited by us, they could have been a need to change them during the beta period - it'd have been a lot easier for the developers themselves if they had put as much as possible in the inis.
Renegade is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-22-2004, 11:33 AM   #10 (permalink)
Senior Member
 
Join Date: Jul 2003
Location: Lithuania, Central Europe
Posts: 1,057
Send a message via MSN to DCoder
Default

Even if they didn't intend to make it easily editable, the decision to treat two identical strings so differently is stupid.

BTW, I found a way to resolve this annoying problem. Modify the UIName= entries in all countries' sections, to make sure the strings are listed the same way as the hardcoded order demands. IE the first country on the [Countries] list gets UIName=Name:Americans, the second gets UIName=Name:Alliance. etc... and adjust the csf strings to match the real countries. Yeah, very smart. Now I have to set [British] UIName=Name:Africans, and set Name:Africans to say "British". Sure sign of a genius at work, eh? :S
DCoder is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A long long time ago, in a mod far far away.... groovyg Red Alert 2 & Yuri's Revenge Editing 5 05-03-2005 09:50 AM
My mod I made a long while back doog Red Alert 2 & Yuri's Revenge Editing 20 08-11-2004 06:30 AM
Wondering for a long time. The_Blind_One Generals & Zero Hour Editing 5 05-15-2004 07:31 AM
I have a bunch of problems, so this is going to be long... Oldfaq Generals & Zero Hour Editing 0 11-11-2003 03:33 PM
New infantry, it IS possible, Long Post... Tebrey Generals & Zero Hour Editing 16 04-15-2003 11:52 AM


All times are GMT -4. The time now is 11:07 PM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.