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

Forum Info
Forum Members: 18,643
Total Threads: 8,744
Posts: 95,519

Administrators:
DeeZire, Redemption

There are currently 25 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 08-11-2004, 05:18 PM   #1 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
Default Construction Yard Code Cracked??

Good news! Me and ravage have made it possible to place structures beside other freindly structures, we have but to implement pre-purchasing yet and it is tricky so far but the structure placement was the more daunting task when I first tried to crack the CY code.

I have got a few methods in mind, involving upgrades and commandset updating, but I was wondering if anyone here has an idea how to do it, your name WILL be mentioned if you are successful.

Keep in mind it does not have to be like the old C&C way of pre-purchasing, just as long as you have to spend the time and money on a structure BEFORE placement.

I'll go into detail what I have tried so far later, but for now I would like to hear some ideas.
Waraddict is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-11-2004, 05:32 PM   #2 (permalink)
Junior Member
 
Join Date: Apr 2003
Location: USA
Posts: 29
Default

What you could do is have 2 commandsets. 1 is the prebuilding commandset, which has buttons which purchase sciences (see another recent thread on how to do that, I think its possible). The 2nd commandset is the placement commandset. It would use the actual means of placing all the structures but it would require the prebuilt science for each structure. So all you'd have to do is prebuild it, then switch to the placement commandset and the placement button would be available for the building. The problem is you'd have to find a way to revoke sciences. Depending on how you contruction method works, you could do it with dummy objects as prerequistes instead of sciences and it would be much better. So please, tell us how you did the conyard building so we can work with it better.
amdahlj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-11-2004, 05:43 PM   #3 (permalink)
Senior Member
 
Join Date: Jul 2004
Posts: 605
Default

Simple

There's a button....

Click the button, an amount is deducted from your account balance
The "research progress" item shows in the queue box
Opon completion, the Construction yard is "upgraded" with a new command set, where the "button" you originally clicked on becomes a "real" building placement command button, and all the others are greyed out
Upon the building being placed, the Con Yard is "upgraded" back to the original command set

Unless this is what you had in mind originally?
DarkSideDave is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-11-2004, 05:45 PM   #4 (permalink)
Junior Member
 
Join Date: Apr 2003
Location: USA
Posts: 29
Default

Quote:
Originally Posted by W3bdevil
Simple

There's a button....

Click the button, an amount is deducted from your account balance
The "research progress" item shows in the queue box
Opon completion, the Construction yard is "upgraded" with a new command set, where the "button" you originally clicked on becomes a "real" building placement command button, and all the others are greyed out
Upon the building being placed, the Con Yard is "upgraded" back to the original command set

Unless this is what you had in mind originally?
The problem is you have a whole mess of commandsets. And what if you prebuild another building before placing it, you'd lose the previous building.
amdahlj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-11-2004, 05:52 PM   #5 (permalink)
Senior Member
 
Join Date: Jul 2004
Posts: 605
Default

Thats how the original CnC games worked

....Only you got your money back
DarkSideDave is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-11-2004, 05:53 PM   #6 (permalink)
Member
 
Join Date: Jul 2004
Location: Deep Space
Posts: 91
Send a message via ICQ to Avenger33
Default

He said, "all others are grayed out"... That means that you can't start construction of another building before you place the ready one...
Avenger33 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-11-2004, 05:55 PM   #7 (permalink)
Junior Member
 
Join Date: Apr 2003
Location: USA
Posts: 29
Default

Quote:
Originally Posted by Avenger33
He said, "all others are grayed out"... That means that you can't start construction of another building before you place the ready one...
Oh, so you'd replace them with dummy buttons, well It would still be another commandset for every building for every side.
amdahlj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-11-2004, 10:58 PM   #8 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: Indiglo Plateau (USA)
Posts: 526
Send a message via ICQ to LtZack Send a message via MSN to LtZack
Default

cant you just give it max que (sp?) = 1 like with the overlord that way you can only do 1 thing at a time.....
LtZack is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-11-2004, 11:23 PM   #9 (permalink)
Junior Member
 
Join Date: Apr 2003
Location: USA
Posts: 29
Default

Quote:
Originally Posted by LtZack
cant you just give it max que (sp?) = 1 like with the overlord that way you can only do 1 thing at a time.....
Think about the way it is done. After you prebuild something, nothing is queued.
amdahlj is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-12-2004, 08:05 AM   #10 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
Default

Right, so far you guys are kind of hitting the same area I did for that feature, here's what I tried.

Two CommandSets,

One full of upgrades (Could be described as 'build' icons classic C&C wise)

and the other all placement icons


Each upgrade is for a specific building, select the upgrade for PowerPlant and it will enable the PowerPlant to become buildable (It's possible to make an upgrade a prerequisite by creating a fake invisible building/unit) and to upgrade the CY to the placement commandset.

And this is where it gets tricky, my idea was to make those building upgrades player upgrades to that I could grant the downgrade with a newly built building, turns out that you cannot remove a player upgrade anyway so unless you want a player to be able to build unlimited PowerPlants after he only pays for one that idea is kind of useless.

Oh and the reason why Im not revealing the code of placing the buildings yet is that is may need to be modified a bit according to whatever method of pre-purchasing will be picked, but I'll tell you this, it DOES use the place building buttons, as long as the method of pre-purchasing incures the cost and time of a selected building before being able to click on the placement button of that building and then averting back to the upgrade commandset then it's fine.
Waraddict 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
Naval Yard (again...) CodeCat Generals & Zero Hour Editing 17 03-11-2008 04:38 PM
AI Construction Airstriker Generals & Zero Hour Editing 6 08-30-2005 07:44 PM
EA Impliment Con Yard Code Waraddict LOTR: Battle For Middle Earth I & II Editing 11 01-14-2005 03:46 PM
naval yard possible sage_inferno Generals & Zero Hour Editing 22 11-10-2003 08:39 AM
New Building: A Ship Yard warlord Generals & Zero Hour Editing 32 06-06-2003 07:44 PM


All times are GMT -4. The time now is 06:01 AM.


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