You must be logged in to post messages.
Please login or register

Modding and Scripting
Moderated by Yeebaagooon, nottud

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: The tutorial for unit sizing released! By Tim W!
« Previous Page  1 2 3 ··· 6  Next Page »
posted 29 April 2003 12:44 PM EDT (US)   
Here's the tutorial.

You need:
- Aomed
- A text editor
- Scenario with some units

1. Open AomEd
2. Click on Advanced options and turn on 'Enable scenario unit editing'
3. Click on 'Set input data file' and choose your screnario.
4. Click on 'Folder to extract data into' and choose a new folder (create one first).
5. Click on 'Read data file'.
6. Wait until it shows 'Finished' before going to the next step!
7. Go to the folder where files are extracted and open 'Z1.txt'

If you have 1 unit you will have something ! like ! this.

Quote:

Z1_count: 1
Z1_0_id: 262168
Z1_0_head: "H1"
Z1_0_length: 225
Z1_0s_en_id: 262168
Z1_0s_en_unknowns: 0 3 8 0 1123 0 1 117.158767700195 0.565117597579956 71.0022430419922 0.999604940414429 -0.0222407300025225 0.0171863716095686 0.0222610346972942 0.999751687049866 -0.000990992179140449 0.0171600636094809 -0.00137318705674261 -0.999851822853088
Z1_0s_un_name: "3087"
Z1_0s_protounit: 336
Z1_0s_scale: 1 1 1
Z1_0s_unknown01a: 0.351310729980469 0 0.0380032733082771 -0.213806837797165 9d2f0b3f -0.213806837797165 2.22478842735291
Z1_0s_hitpoints: 2000
Z1_0s_unknown01b: 0 0 fc3be5c2 1
Z1_0s_bd_exists: 0
Z1_0s_los: 30
Z1_0s_extra02_flag: 0
Z1_0s_unknown04: 0
Z1_0s_extra03_flag: 1
Z1_0s_unknown05a: 2 0 0.998013556003571 114.58903503418 114.58903503418 0 0
Z1_0s_unknown05b: 4135
Z1_0s_unknown05c: 0 1
Z1_0s_unknown06: -106 -1
Z1_0s_unknown07_count: 0
Z1_0s_unknown08: -1 0 0
Z1_0s_unknown09_count: 0
Z1_0s_unknown10: 0

To edit the scale (making units bigger/smaller) change the line Z1_0s_scale like this:

Format: [X scale] [Y scale] [Z scale]

1 1 1 is the default size
3 1 1 will scale in the X axis
1 3 1 will scale in the Y axis
1 1 3 will scale in the Z axis
3 3 3 will scale in all axises

You can also use decimals like this : 1.5 1.5 1.5

To change hitpoints change the line with Z1_0s_hitpoints:xxx like this:

Z1_0s_hitpoints:500 to have 500 hp
Z1_0s_hitpoints:1000 to have 1000 hp
etc...

To change the line of sight :
Go to this line :

Z1_0s_los: 10

Change the number to 0 and your unit will have no line of sight

Change the number to 30 and your unit have the same line of sight like the god power vision.

8. Open AomEd
9. Click on Advanced options and turn on 'Enable scenario unit editing'
10. Click on 'Set output data file' and choose your screnario.
11. Click on 'Folder to inport data from' and choose the folder where the files are extracted to.
12. Click on 'Write data file'.
13. Wait until it shows 'Finished' before going to the next step!

Go and see...
See big/small units with strange hp in your screnario!!!

About moving units up in air...
I'm still searching for this!

AlexandertheGreat have something more!

Quote from AlexanderGreat3

Quote:


After a lot and a lot of testings, i have figured out the cause for this error!! I now know how to make this works for all units, on any map!!! Yes!! And it is very simple to fix!
------------------------

Ok, we only need to fix 2 things in order to make our files work!!! :

First: Add 3 to the existing number in Z1_0_length to get the correct length number of your unit.

(IMPORTANT HINTS: certain units have certain length numbers associated with them just like proto numbers. The numbers of your units must be correct for the file to work. For example, if your unit is a berry bush and you found out that the correct number is 225, you should always use this number for all your bery bushes.)

SECOND: make sure that the number in Z1_0s_un_name is four digit!!

You're all set!!


---------------------------
EXAMPLE:


Z1_count: 1
Z1_0_id: 0
Z1_0_head: "H1"
Z1_0_length: {current number +3} Notes: adding 3 is to get the correct length number associated with this unit type. If you already knew the number, don't add 3.
Z1_0s_en_id: 0
Z1_0s_en_unknowns: 0 0 8 0 97 0 1 1 2 1 0 0 -1 0 1 0 -1 0 0
Z1_0s_un_name: {make sure this is a four-digit number} it is NOT important what the number is
Z1_0s_protounit: 462
Z1_0s_scale: 1 1 1
Z1_0s_unknown01a: 2 0 0 0 00000000 0 1.11650061607361
Z1_0s_hitpoints: 100
Z1_0s_unknown01b: 0 0 7b0f1dc2 1
Z1_0s_bd_exists: 0
Z1_0s_los: 0
Z1_0s_extra02_flag: 1
Z1_0s_unknown03: 0 4 0 0 100 0 100 -1
Z1_0s_unknown04: 0
Z1_0s_extra03_flag: 0
Z1_0s_unknown06: -102 -1
Z1_0s_unknown07_count: 0
Z1_0s_unknown08: -1 0 0
Z1_0s_unknown09_count: 0
Z1_0s_unknown10: 0

Z1 Guide made by Tim W
And of course thanks to:

Ykkrosh: For discovering the unit data in scenarios and making unit editing possible with AOMEd.

Alexandergreat3: For founding something more


I have figured out how to change the line of sight!
Go and check it out!(somewhere in the middle of this tutorial)
I'm still trying to find out how to place them(units and buildings) into the air.

[This message has been edited by Tim W (edited 12-13-2003 @ 04:54 PM).]

Replies:
posted 29 April 2003 01:05 PM EDT (US)     1 / 150  
Cool!!!!!!!

Im going to test it right away now!

tnx tim w

Edited:

Ok i tested it

but it doesnt works,i cant load my scenario any more.
i did all your steps but one step i didnt get how to do: put it back in your scenario. how do i put it back into my scenario?

[This message has been edited by Minidraco (edited 04-29-2003 @ 01:21 PM).]

posted 29 April 2003 01:37 PM EDT (US)     2 / 150  
If you have saved your Z1.txt open Aomed again.
!IMPORTANT!Click again on Advanced options and turn on 'Enable scenario unit editing' again.!IMPORTANT!



http://aom.hsc.be

Check my site out
There will be soon many content

posted 29 April 2003 01:39 PM EDT (US)     3 / 150  
i get that but what after that?
pls explain completely."How" do i put it back?
posted 29 April 2003 02:05 PM EDT (US)     4 / 150  
Wow i thought it was a joke lol!
But then you really did make one, but prove to us you can resize units by posting a pic.

Leader of Liquid Fire. Animator Seb C.

One does not simply leave HG
posted 29 April 2003 02:13 PM EDT (US)     5 / 150  
I will post a screenie tomorrow...

http://aom.hsc.be

Check my site out
There will be soon many content

posted 29 April 2003 02:52 PM EDT (US)     6 / 150  
please answer tim, "how" do i put this back in the scn?
posted 29 April 2003 03:17 PM EDT (US)     7 / 150  
I have edited the tutorial...
Dont make your units much higher then 3 else you get bad screens (or you can zoom out with editor mod)

http://aom.hsc.be

Check my site out
There will be soon many content

posted 29 April 2003 03:35 PM EDT (US)     8 / 150  
You can't copyright it, silly.
posted 29 April 2003 03:43 PM EDT (US)     9 / 150  
YES!! GOTTA TRY THIS TOMORROW!! THANK YOU SO MUCH!!!!!!!! (If it works, if not): YOU ARE A BIG, FAT, LIAR!!!! Kidding.
Lol.

Hey, do you mind if I put it in a text/word file in the dowloads section, or if you do it? Full credit to you, of course.


I think signatures are a waste of bandwith, space, time. They are useless, unimportant, stupid, created for no purpose, and anyone who has one is stupid.

You have wasted approximately 7.2343 seconds of your life by reading this.

[This message has been edited by Mike the Great (edited 04-29-2003 @ 03:44 PM).]

posted 29 April 2003 04:36 PM EDT (US)     10 / 150  
I apologize for yelling at you, it just didn't seem possible. Not because you're 12, though. I'm 13. Thank you for your contribution to the world of AoM. Off to test!

Exiled
Battle Dwarves
Battlefields: Kemsyt's Uprise

Mistacheese wins the "Person-who-secretly-emmits-CheeZy's-thoughts" award - Cheezy
posted 29 April 2003 05:10 PM EDT (US)     11 / 150  
I can't get it to work. Every time I open it up in AoM it tells me that there was an error creating the file. Any tips? I've tried everything I can think of.

Exiled
Battle Dwarves
Battlefields: Kemsyt's Uprise

Mistacheese wins the "Person-who-secretly-emmits-CheeZy's-thoughts" award - Cheezy
posted 29 April 2003 06:39 PM EDT (US)     12 / 150  
hehe that's great
I'll try that out as well, we all sorry for yelling at u, and kind of stared u with disbelief... now u proved us wrong and that's really a good thing for all of us

this is especially useful to me and i'll note u in "special thanx"

[This message has been edited by battlestar000 (edited 04-29-2003 @ 06:41 PM).]

posted 29 April 2003 07:02 PM EDT (US)     13 / 150  
Hey Tim,

How do I turn on the "Advanced Option" to enable Scenario Unit Editing?

There doesn't seem to be that option on the AoMED that I have.

posted 29 April 2003 07:25 PM EDT (US)     14 / 150  
Ok, nevermind... I've got a 1-month-outdated version of AoMED . I'll go try this now!
posted 29 April 2003 07:41 PM EDT (US)     15 / 150  
This is a awesome find Tim W

I have'nt been able to get it to work. Everything seems to work properly, but when I try to open the scenario, it boots me out of the editor and says it can't open the scenario. It does this even if I don't change any attributes at all. I made sure I have the "enable scenario unit editing" enabled both for the extraction and importing.

I believe I have the latest version of AoMed- created Feb 22

Anyone else have this problem?

Thanks

P.S once again, great find Tim W

posted 29 April 2003 07:53 PM EDT (US)     16 / 150  
If unit's scaling attributes and stats are saved in the .scn file, what could be the "errors" ES said scaling would cause? Maybe all units of the same type would also be set to that scale?

Nice find, I never knew AOMed could be used to do that. Why didn't Ykkrosh say so?

Note the lines in there, you can also change a unit's name and stats.

Very nice Tim, congradulations on the find, though you were quite abit immature when aproaching us last time with this find.


CheeZy ex-HG Angel
WildFire Games - Artist, Lead Scenario Designer, Game Designer for 0 A.D.
"But really, stop fighting and listen to CheeZy when he says use good grammar." - Phantom_rider.
----Stuff I've Made----

[This message has been edited by CheeZy monkey (edited 04-29-2003 @ 07:56 PM).]

posted 29 April 2003 08:08 PM EDT (US)     17 / 150  
To put this stuff back in SCN form go to Set Output Data file and type in the name of the scenario, then go to Select Output Data location, select the folder where you extracted the stuff, then click write as a .scn

This is an amazing discovery, though you'll have to go through alot of work, and you'll have to set up your scaled units in the map before you design for it.

Hey tim, do you know if you copy the unit and paste it, will it go back to it's default size? Because if it doesn't then someone could make a template with all the units scaled.


CheeZy ex-HG Angel
WildFire Games - Artist, Lead Scenario Designer, Game Designer for 0 A.D.
"But really, stop fighting and listen to CheeZy when he says use good grammar." - Phantom_rider.
----Stuff I've Made----
posted 29 April 2003 08:23 PM EDT (US)     18 / 150  
Hey tim w, well done.But i have one problem, when i try mto put it back in scenatio file its came from i press write data and it starts writing but it gets to the scale bit and it says there was a problem writing the file.

Why does it do this.I changed the scale to 333.And in the erorr report it had a bit and it had 111.

posted 29 April 2003 08:58 PM EDT (US)     19 / 150  
Has anyone other than Tim been able to load an edited scenario by AoMed?

I've got the same problem like ra5946 had: when I load the new scenario, the game says "Unable to load scenario".

Help would be appreciated.

posted 29 April 2003 09:19 PM EDT (US)     20 / 150  
I could put up a screen, but I'm too lazy.

Anyway, it works fine(edited an aom_pgs_water scenario and rescaled the lighthouse to 200%).

Good find man, I think someone should hex and find the unknowns.


Area 42
EE Studio | AoM ZooM Editor
11 Relics Modpack(4.8) | Soccer Scenario(4.2) | SWGB Casino(4.7)
Quand un athlète fait cent fois l'salaire d'un médecin Moi j'dis qu'c'est ça l'déclin d'l'empire américain - Cowboys Fringants
The artist formerly known as Prin...errm...EO
posted 29 April 2003 09:25 PM EDT (US)     21 / 150  
Hey Larmir,

what's the version of your AoMed? Mine is version 6a, and I keep getting the "unable to load scenario" error .

Help please .

posted 29 April 2003 09:48 PM EDT (US)     22 / 150  
Prolly have AoMEd 5 or 6. Not sure which version I opened first(I dl and save them a bit anywhere then lose them...bad habit).

Not sure what you do wrong...I picked the SCN, extracted with the unit editing thing. Made sure there was no Z1.dat file, edited the txt file, changed the values needed, saved and then recompiled back in AoMEd, then tested.


Area 42
EE Studio | AoM ZooM Editor
11 Relics Modpack(4.8) | Soccer Scenario(4.2) | SWGB Casino(4.7)
Quand un athlète fait cent fois l'salaire d'un médecin Moi j'dis qu'c'est ça l'déclin d'l'empire américain - Cowboys Fringants
The artist formerly known as Prin...errm...EO
posted 29 April 2003 10:18 PM EDT (US)     23 / 150  
Yeh i cant open my scenario once i sized it up.
posted 30 April 2003 00:16 AM EDT (US)     24 / 150  
I found out something interesting. The triggers exported from a usermade SCN are saved in a .txt file, while the ones from ES scenarios are in XML and look like this:

Quote:

<Group Name="Cinematic">
<Trigger Name="TrackOpen" Priority="High" Loop="No" RunImmediately="No" Active="No" EventID="2">
<Condition Type="Timer" Value="1"/>
<Effect Type="Camera Track" TrackName="TrackOpen4" TriggerName="TrackToBoar"/>
<Effect Type="Fire Event" TriggerName="DestroyTorches"/>
<Effect Type="Fire Event" TriggerName="ActivateSkybox"/>
<Effect Type="Fire Event" TriggerName="MoveBoat1A"/>
<Effect Type="Fire Event" TriggerName="MoveBoat2A"/>
<Effect Type="Fire Event" TriggerName="MoveBoat3A"/>
</Trigger>

So I'm thinking you can copy that file and edit it as you please, put it in your scenario's extract and recompile. If you have to copy and paste any trigs in your scenario this'll be the way to do it.


CheeZy ex-HG Angel
WildFire Games - Artist, Lead Scenario Designer, Game Designer for 0 A.D.
"But really, stop fighting and listen to CheeZy when he says use good grammar." - Phantom_rider.
----Stuff I've Made----
posted 30 April 2003 03:19 AM EDT (US)     25 / 150  
I tested it again, but it just doesn't works.
I followed all your steps one by one, and it still say'd that it can't load the scenario.

I don't know what version of AoMed i have but i have the option to "enable SCN Unit Editing" so i think it is the right one.

[This message has been edited by Minidraco (edited 04-30-2003 @ 03:19 AM).]

« Previous Page  1 2 3 ··· 6  Next Page »
Age of Mythology Heaven » Forums » Modding and Scripting » The tutorial for unit sizing released! By Tim W!
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Mythology Heaven | HeavenGames