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

Forum Info
Forum Members: 18,575
Total Threads: 8,656
Posts: 94,426

Administrators:
DeeZire, Redemption

There are currently 61 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-01-2004, 11:34 AM   #1 (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 Naval Yard (again...)

For ReGeneration I'm trying to figure out how to properly do the naval yard. Currently I have a Sub Pen that is partially built on water (because its geometry doesn't match with the model), but the submarines it builds appear on water. The subs can move around only on water too, so there's no problem there. The real problem is a well-known one: if you build the pen on land only, the subs it builds can move around on land. The subs have only WATER as their locomotor surface, so it's not that anyway.

I remember from a long time ago that Henford had a correct naval yard working, but that he didn't want to share his code (and DZ got angry at him). Anyway, IIRC Fallout is dead now, so I suppose Henford (if he's still around anyway) should release this code. If someone has it or knows where it is, please tell me.

Another option to solve this would be somehow to get naval units to explode if they're built on land. I was thinking of the way paratroopers die if they're dropped on a cliff or on water. Maybe this would be possible to do for ships: if they appear on land, they explode. I don't really know what triggers this, as the subs have only WATER, but they don't die. They can even move around on land! LtZack tried to help me out a bit, but it didn't work.

So if there's anyone who has any hints, tips, experiences, whatever, that can get this working a bit better, I'd GREATLY appreciate it.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 11:51 AM   #2 (permalink)
Senior Member
 
Join Date: Aug 2003
Location: UK
Posts: 704
Send a message via MSN to Mithril
Default

Why don't you take off the structure's geometry tags (you can add geometry via a subobject later) and make a special dozer (only downside of this) that only has WATER in its surface type?

As far as I can remember, Henford simply made a new terrain type that looked like water...so vehicles and infantry could also move over it.
Mithril is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 11:59 AM   #3 (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

The problem with that method is that it needs an extra dozer. And beside that, I can imagine that if the subs can move around on land, a naval dozer can move around and build stuff on land, too. So it's not a good idea.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 12:10 PM   #4 (permalink)
Senior Member
 
Join Date: May 2004
Posts: 303
Send a message via MSN to RedLeader
Default

the only thing i could think of is make the one dozer incorperate the navel yard and let that dozer drive out to water and "place" the building, but i want to avoid that if i can....
RedLeader is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 01:28 PM   #5 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: UK
Posts: 676
Send a message via MSN to DJRowley
Default

You could try coding it so that building a sub actually produces a dummyobject which uses an OCL to create the sub 1 millisecond later. That may work.

Hmmm... I'm sure there was somethig like a 'ShiftToAllowedTerrain' line in the OCL settings. Maybe I imagined it... :/
DJRowley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 01:40 PM   #6 (permalink)
Senior Member
 
Join Date: Jul 2003
Location: The Netherlands
Posts: 141
Send a message via ICQ to Rene
Default

Henford also did not reach perfection. The last (and only) thing I read about how he did it would be the following:

Quote:
Originally Posted by Henford
Pretty much it involves changing the actual surface type for water and defining it as a different surface. My naval code will not work on regular Generals maps. Currently I only have 1 map it will work on, a simple one I have built myself.
Searching for a way to implement naval into Generals/Zero Hour has never resulted in a solid solution. Maybe it's time to let it go and face the fact that the engine is not suitable for it.
Rene is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 01:43 PM   #7 (permalink)
Senior Member
 
Join Date: Aug 2003
Location: UK
Posts: 704
Send a message via MSN to Mithril
Default

A possible way (adaptable for the AI too, which many people seem to forget) would be to have preplaced navalyards on maps as "tech buildings" for capture.
Mithril is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 02:01 PM   #8 (permalink)
Senior Member
 
Join Date: May 2004
Posts: 303
Send a message via MSN to RedLeader
Default

yes, but then theres that indescseible fact that u could capture the other guys navelyard and ur own...but u can make one building and whatever team ur are, thats the tech u get...if thats possible....
RedLeader is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-01-2004, 04:41 PM   #9 (permalink)
Super Moderator
 
The End 007's Avatar
 
Join Date: Dec 2002
Location: Purging your soul in the blue fires of hell.
Posts: 1,650
Send a message via MSN to The End 007
Default

You could make a construction chinook or something along those lines that flies out and lowers workers from a winch down over the constuction site, similar to the kind of casket things you have on the sides of tall buildings for window cleaners, it lowers down and allows them to work. That would avoid the problem of having to have either two dozers or a strange looking dozer that has to be amphibious. The only problem I foresee is that construction chinooks could then fly over to the enemy base being able to avoid all terrain and just get straight there.
__________________
Oh god how did this get here? I am not good with computer.
The End 007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-02-2004, 09:04 PM   #10 (permalink)
Junior Member
 
Join Date: Feb 2004
Posts: 28
Default

are the subs moving over the land or under it?
could it be something to do with the water plane that exists under most generals maps?
maybe they may think they are still over water even though you only see land?
inbredorange 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
EA Impliment Con Yard Code Waraddict LOTR: Battle For Middle Earth I & II Editing 11 01-14-2005 03:46 PM
Construction Yard Code Cracked?? Waraddict Generals & Zero Hour Editing 43 08-20-2004 12:05 PM
Naval structures on naval maps Whiteboy Red Alert 2 & Yuri's Revenge Editing 7 07-22-2004 07:08 AM
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 10:16 PM.


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