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,626
Posts: 94,205

Administrators:
DeeZire, Redemption

There are currently 112 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 09-07-2003, 12:24 PM   #1 (permalink)
Senior Member
 
Join Date: Jul 2003
Posts: 138
Default ReplaceModule

I have had a few ideas to bring my mod back to life again. (info here)

well after a long break, i have has some sparked interest in this mod, mainly becaus i found a few differant tags that may help out with what i am trying to accomplish, right now its all theorectical (should work, but you know how hardcoded things happen to appear)
ok.. this is my idea that i have that may get things going again

Code:
ReplaceModule  ModuleTag_XX
    Behavior = BlahblahUnit ModuleTag_XX_Override
    Change stuffs here
    Triggeredby= whatever the upgrade is
    End
End
now i'm hoping this will work as i "should" be able to have multiple opf these in the unit that can work wonders for the only 1 weaponset upgrade or armour, or evan locomoter things

for example i would have

Code:
  WeaponSet ModuleTag_01
    Conditions          = None 
    Weapon              = PRIMARY    primaryweapon1  
    Weapon              = SECONDARY   secondaryweapon2
  End
now using the replace module tags i can use

Code:
ReplaceModule  ModuleTag_01
    Behavior = BlahblahUnit ModuleTag_01_Override
      Weaponset 
        Conditions = None
        Weapon = PRIMARY primaryweapon2
        Weapon = SECONDARY secondaryweapon2
     End
    End
 TriggeredBy= myupgradething
End
now theoreticaly that will upgrade the weapon without using the weaposet upgrade thing, wich has a limit to one per unit, this way i can have multiple weapon sets for a unit allowing the upgrades to work fully. i can also change more things using this method aswell, allowing for when you upgrade the nuit the new weapons and thier corrosponding graphics (barrels, guns, whatever) to be created aswell

this method can be used for the many things that would be needed to be upgraded (armour, locomoters, weapons, and anything else i want to change)

this will also unlock many more possibilities aswell, beacause i will be able to upgrade many things not normally upgradable, like being able to be garrisioned by units, and how many, stealht upgrades, and anything else i can think of.

now remeber this is all just theoretical, it has not been proven true of fals as of yet, but i am hoping it works in the way i want. the biggest problem i can see so far is if i can have the TriggeredBy tag in the ReplaceModule thing

if all this wokrs i will be only limited to the max number of upgrades for a faction (or overall) wich i am not exactly sure on what it is, how it wokrs, oranything else, all i know is that i have read about a max number of upgrades, just not sure the exact things with it..

i will probably try this all out later and hope for the best

if anyone has ideas, comments, suggestions.. let me know
Jim-Bob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-07-2003, 12:35 PM   #2 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: USA
Posts: 452
Default

i think the replace module tag is meant only to be used in the map.ini's...

not sure though.
guyee is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-07-2003, 12:37 PM   #3 (permalink)
Senior Member
 
Join Date: Jul 2003
Posts: 138
Default

yeah thats where i saw it.. but i'm hoping that it will work elswhere..
Jim-Bob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-07-2003, 01:19 PM   #4 (permalink)
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

Very interesting! Does this mean, that if this works, you can have more than one stealthupgrade at a time? In other words, would this allow you to upgrade a "stealth when still" unit to be also stealthed when moving?
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-07-2003, 02:08 PM   #5 (permalink)
Senior Member
 
Join Date: Jul 2003
Posts: 138
Default

well if it worked it would mean anything could be upgrade

but.. i cant get it to work properly or at all for that matter..

I have been trying for awhile now, trying to get the code propely done, but it doesnt work, all i get are technical difficulties, and i'm using a "clean" version of generals with only this being tested on it.

I then tried to do it in the map.ini but everytime i try to play the map game crashes

i might try more on it a bit later becausde if i can get this thing to work properly it will allow many things to be done that were "hardcoded" for upgrades, weaponsets.. just about anything, but the way it looks it wont work properly.

if anyone has ANY suggestinos on how to get this to work, let us know, it could help out many people if this thing gets worked out (if it can anyways)
Jim-Bob 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



All times are GMT -4. The time now is 12:44 PM.


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