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

Scenario Design and Discussion
Moderated by Sebastien, Mr Wednesday

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: Two units have the same ID? [help me]
posted 04-12-06 04:20 PM CT (US)   

I have no idea how i did this, but i want to reproduce it! any ideas how i would have 2 units have the same ID?
on a side note, s_t_c check ur mail


helloworld

[This message has been edited by Nixck (edited 04-16-2006 @ 11:42 PM).]

Replies:
posted 04-12-06 06:38 PM CT (US)     1 / 23  
Woah. Never seen that..

me
posted 04-12-06 08:45 PM CT (US)     2 / 23  
Are the actually different units or did AOKTS screw up? Can they have different properties and stuff?

Creator of the AOK Trigger Studio, a work not in progress.
Wise men still seek Him.
posted 04-12-06 08:51 PM CT (US)     3 / 23  
DiGiT it was probably an error/bug in the aokts but it was a good bug and i want it to happen again

can i send you the map and you tell me what i need to know? or if u have AIM id prefer that


helloworld

[This message has been edited by Nixck (edited 04-12-2006 @ 09:00 PM).]

posted 04-14-06 01:01 PM CT (US)     4 / 23  
Sure, go ahead and send it.

Creator of the AOK Trigger Studio, a work not in progress.
Wise men still seek Him.
posted 04-14-06 01:38 PM CT (US)     5 / 23  
I used hex-editing in order to create two units with same ID, too.

When their ID is negative number, the game will treat all commands towards these units as to only the first one, until a projecile with that ID is created. (ID of projectile created in-game is counted backward, starting from -2.) After the projectile is created, the command will be turned to the projectile. Meanwhile, unit with negative ID cannot be selected by mouse (but they can with "," or "." button).

When their ID is positive number, there is nothing special.

Besides hex-editing, another method to get two units with same ID would be placing projectile in the editor, since they would have negative ID and could sometimes cause mis-calculation.


Member of Tsunami Studios
Scenario T.C.: “Yes, the traitors can’t be terminated.”
Richard Ames: “Scenario_t_c should take care of them in a succinct but humorous fashion.”
Don Jorge de Leon: “Ave Trisolo! Vive Trisolo!”
posted 04-14-06 03:11 PM CT (US)     6 / 23  
hold on digit i think scen's got something here

could you tell me how to do this hex editing you speak of? or I could send you my current map and help me with it (first one was just an example)

thanks


helloworld
posted 04-14-06 03:58 PM CT (US)     7 / 23  
So is there any advantages to having two units with the same ID, at all?

EDIT:

Quote:

could you tell me how to do this hex editing you speak of


That would take a few weeks.



dannyking.me


[This message has been edited by newIdea (edited 04-14-2006 @ 03:59 PM).]

posted 04-14-06 04:01 PM CT (US)     8 / 23  
HELLS yes! Its vital for the map im making currently
Trust me, when im done with my map ull be like "g0t dam! that its the sheet man"
And Scen_t_c can vouch for me on that

helloworld

[This message has been edited by Nixck (edited 04-14-2006 @ 04:02 PM).]

posted 04-14-06 04:08 PM CT (US)     9 / 23  

Quote:

So is there any advantages to having two units with the same ID, at all?

Under the condition of restricting the usage of any projectile in the scenario (which is impossible), you could achieve effects like summoning a bodyguard with the help of unit-in-unit garrison. (two same negative id and 0 hp units inside the hero)

Quote:

could you tell me how to do this hex editing you speak of?

After you open your scenario in AoKTS, you can modify scendata.tmp under AoKTS folder with a hex editor and save it into a scenario file with the "Scenario -> Save As (hex)" command in AoKTS. Its structure has already been described in scx_format.txt included with AoKTS.


Member of Tsunami Studios
Scenario T.C.: “Yes, the traitors can’t be terminated.”
Richard Ames: “Scenario_t_c should take care of them in a succinct but humorous fashion.”
Don Jorge de Leon: “Ave Trisolo! Vive Trisolo!”
posted 04-14-06 04:13 PM CT (US)     10 / 23  
i was wishing more along the lines of you fixing up my map for me =S but remeber Its a multiplayer map

helloworld

[This message has been edited by Nixck (edited 04-14-2006 @ 04:13 PM).]

posted 04-14-06 04:19 PM CT (US)     11 / 23  

Quote:

Under the condition of restricting the usage of any projectile in the scenario (which is impossible)

Uh... AI missile detection + Looping Trigger that removes all projectiles of one kind?

posted 04-14-06 04:26 PM CT (US)     12 / 23  
@Cesar Bernardi

As soon as the projectile is created, the "controller unit" is switched to it. To prevent this from happening, no ranged unit/building should be used. (that's why I suggested it's impossible)

@Nixck

I don't even know what you want me to do. I can teach you to do it, but I don't think I have the time to do it for you directly now.

The basic way to alter the unit ID would be to search the x-coordinate and y-coordinate of its position in 32-bit float type first, then edit the 32-bit signed long data after them.


Member of Tsunami Studios
Scenario T.C.: “Yes, the traitors can’t be terminated.”
Richard Ames: “Scenario_t_c should take care of them in a succinct but humorous fashion.”
Don Jorge de Leon: “Ave Trisolo! Vive Trisolo!”

[This message has been edited by scenario_t_c (edited 04-14-2006 @ 04:27 PM).]

posted 04-14-06 04:41 PM CT (US)     13 / 23  
All i want is the following units put into my map (the numbers in ()'s means how many of them)

(2) CATST2 under p1's control with the same ID
(2) CATST3 under p1's control with the same ID
(2) CATST4 under p1's control with the same ID
(2) CATST under p2's control with the same ID
(2) CATST2 under p2's control with the same ID
(2) CATST3 under p2's control with the same ID
(2) CATST4 under p2's control with the same ID

If you understand what i am asking and agree to help me i will send my map to you. Also the names for the units are different in aokts


helloworld

[This message has been edited by Nixck (edited 04-16-2006 @ 11:42 PM).]

posted 04-14-06 04:45 PM CT (US)     14 / 23  
@Nixck
No cussing in SD.
And scenarios usually don't do so well, when they are based off of a single trick.
I still don't see how this could do something interesting. You keep saying it's awesome, but you don't say what you're doing with it. Make one wonder if you're bluffing.



dannyking.me


posted 04-14-06 04:53 PM CT (US)     15 / 23  
Fine ill replace Hel- with Purgatory

Its not a big map, only 30 x 30 and even then it has alot of trees. Its pretty much a game like laser tag of such (but its not laser tag) You may not think its that great, but i was excited out of my mind when i found this trick. Of course I was so suprised that I imagined i wouldnt be the only one and someone else would make a map out of it before me. And that has happened b4. Trust me, when i finish my scenerio I will upload it immeditaly and make a thread explaining all about "it" But until then its just between me and S_t_c (because I need his help)


helloworld

[This message has been edited by Nixck (edited 04-14-2006 @ 04:54 PM).]

posted 04-14-06 05:03 PM CT (US)     16 / 23  
O...kay.
Well, good luck...



dannyking.me


posted 04-14-06 05:28 PM CT (US)     17 / 23  
One good thing about the CATST projectiles is that they have no "owner".
posted 04-14-06 05:35 PM CT (US)     18 / 23  
sorry to disagree but in aokts, it says they do

helloworld
posted 04-14-06 05:59 PM CT (US)     19 / 23  
I don't think you understood what I've said. No unit shoots any of the CATST projectiles. They look like cannon stones, therefore you might think they came from a cannon, but if you check the game data with Genied you'll see that no unit shoots them.
posted 04-14-06 06:06 PM CT (US)     20 / 23  
heh ud think so wouldnt you but after i finish my map ull change ur mind

its a shame i cant reproduce the 2 units with same ID thing! which means i cant finish


helloworld
posted 04-14-06 06:14 PM CT (US)     21 / 23  

Quote:

ud think so wouldnt you but after i finish my map ull change ur mind

Well well... I have given a Long Swordsman an invisible CATST1 as a projectile. It gets detected by AI. If not detected (=the dude's not fighting), he regains his health.

That's how I came up with a resting healing system for my campaign.

Therefore, CATST projectiles can have owners.

posted 04-14-06 06:16 PM CT (US)     22 / 23  
eh no AI for me because my scen is gonna be a multiplayer map

helloworld
posted 04-15-06 05:06 AM CT (US)     23 / 23  
http://gesneo.hp.infoseek.co.jp/CATST2.scx

Use "." to select villager and order command.


Member of Tsunami Studios
Scenario T.C.: “Yes, the traitors can’t be terminated.”
Richard Ames: “Scenario_t_c should take care of them in a succinct but humorous fashion.”
Don Jorge de Leon: “Ave Trisolo! Vive Trisolo!”

[This message has been edited by scenario_t_c (edited 04-15-2006 @ 05:14 AM).]

Age of Kings Heaven » Forums » Scenario Design and Discussion » Two units have the same ID? [help me]
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Kings Heaven | HeavenGames