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

Forum Info
Forum Members: 18,537
Total Threads: 8,627
Posts: 94,209

Administrators:
DeeZire, Redemption

There are currently 103 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 03-18-2005, 11:43 PM   #1 (permalink)
Senior Member
 
Join Date: Feb 2005
Location: Canada
Posts: 185
Default ENUM? UNIQUE?

is enum similiar to moduletag in that it has to be different in all cases than the otherI guess , im trying to ask , i have two mapalm strikes special powers built , both have the ENUM SPECIAL_NAPALM_STRIKE

My game is crashing now , after i made these two powers , but i changed the enum , and it is still crashing. This is all i have really changed though, any ideas anyone?
goblinsleez is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-19-2005, 12:12 AM   #2 (permalink)
Senior Member
 
Join Date: Dec 2003
Posts: 217
Default

ENUMs cannot be made up, they are hard-coded into the game. Each ENUM has a differing set of properties, eg. SPECIAL_PARADROP_AMERICA does not allow targetting in fog, and SPECIAL_HACKER_DISABLE_BUILDING only allows use on the STRUCTURE KindOf (I think).

Just make sure you don't have 2 SpecialPowers with the same ENUM at the same time, some strange things happen.
sc4freak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-19-2005, 12:31 AM   #3 (permalink)
Senior Member
 
Join Date: Feb 2005
Location: Canada
Posts: 185
Default

Can you please be more precise , as in.

Have two super powers on a faction that have same enum , or two super powers that go off simulatenously with same enum?


Ty
goblinsleez is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-19-2005, 01:33 AM   #4 (permalink)
Senior Member
 
Join Date: Dec 2003
Posts: 217
Default

You can't have 2 SpecialPowers w/ the same ENUM active and counting down per player (IIRC) at the same time.
sc4freak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-19-2005, 02:12 AM   #5 (permalink)
Senior Member
 
Join Date: Feb 2005
Location: Canada
Posts: 185
Default

Ahhh , ok , kewl , thank you
goblinsleez is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-19-2005, 03:43 AM   #6 (permalink)
Senior Member
 
CommieDog's Avatar
 
Join Date: Oct 2004
Location: Alaska (Hell Frozen Over)
Posts: 368
Default

Luckily, there are several leftover Enum= values that you can salvage from superweapons that never quite made the cut for vanilla Generals or ZH.
CommieDog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-19-2005, 06:04 AM   #7 (permalink)
Senior Member
 
Join Date: Jan 2004
Location: Elgin, Scotland, UK
Posts: 168
Send a message via ICQ to Alphathon Send a message via AIM to Alphathon Send a message via MSN to Alphathon Send a message via Yahoo to Alphathon
Default

Where can we find a list of these?
Alphathon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-19-2005, 07:47 AM   #8 (permalink)
Senior Member
 
Join Date: Dec 2003
Posts: 217
Default

game.dat?
sc4freak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-19-2005, 08:22 AM   #9 (permalink)
Senior Member
 
Join Date: Jan 2004
Location: Elgin, Scotland, UK
Posts: 168
Send a message via ICQ to Alphathon Send a message via AIM to Alphathon Send a message via MSN to Alphathon Send a message via Yahoo to Alphathon
Default

Hey would it be possible (or even legal) to reverse engeneer it, like they did for BFMEs assets.dat?
Alphathon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-19-2005, 08:59 AM   #10 (permalink)
Senior Member
 
Join Date: Aug 2004
Location: Augsburg, Bavaria, Germany
Posts: 127
Send a message via MSN to theliberator2005 Send a message via Yahoo to theliberator2005
Default

What for??
It's only a file, that contains the constants defined in the compiled hardcode.
The only result of changing game.dat would be a game crash.
(The only purpose reverse engeneering could have is doing a crack for the game, but you would have to modify the exe itself, too. And I think we agree, that's NOT legal AND we WON'T do it lol)
theliberator2005 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
ENUM issues and Upgrade.ini issues Azirahael Generals & Zero Hour Editing 1 01-22-2005 01:17 AM
Adding a new enum? Incult_1985 Generals & Zero Hour Editing 14 12-31-2004 08:13 AM
Can someone explain how to use 'enum' ? Musou Generals & Zero Hour Editing 3 10-10-2004 09:33 AM
How can I modify "enum"? Musou Generals & Zero Hour Editing 1 09-17-2004 10:32 AM
how can I make unique generals ??? DeathAngel Generals & Zero Hour Editing 15 08-20-2003 02:25 PM


All times are GMT -4. The time now is 11:45 AM.


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