Staredit Network

Staredit Network -> Modding Assistance -> [SOLVED] Change worker's building behavior patt...
Report, edit, etc...Posted by nirvanajung on 2005-10-30 at 21:59:54
i have to change probes working behavior pattern like Terran SCV build behavior in mymod

in the concrete example,

when scv has build ,he allways working on the building ( he cant move control and other action in mid course )

but probe has recall (warp) all buildings And then he can move or other action

in a breeze

i guess maybe its cause different way SC unit's properties type

noway change probes working way like Terran SCV build way? confused.gif

or who have some hint?

--------------

this section exclusion of Zerg Drone
Report, edit, etc...Posted by BroodKiller on 2005-10-31 at 05:54:54
My guess is that this is hardcoded stuff. But I may be wrong, check the SCV and probe's animations for some unknown opcodes or the so-called "Order" opcode. If you find'em - try exchanging them or just play around with them for a while. Should produce some fruitious results (errr....did I say "crashes"? tongue.gif).

I think that this may also be related to the race of the building to construct, i.e. the engine would read the race property and then run the appropriate action....
Report, edit, etc...Posted by Voyager7456(MM) on 2005-10-31 at 06:50:50
Just tested, it seems that neither the race of the builder or the building seems to affect it.
Report, edit, etc...Posted by nirvanajung on 2005-10-31 at 08:08:56
ok, i guess necessary to long experimentation

i had some testing probe change like scv before ....

but probe just recall building like original behavior pattern

it is necessary to consult a hear from BroodKiller
Report, edit, etc...Posted by DT_Battlekruser on 2005-10-31 at 10:32:46
Something to test: IF a probe builds a Command Center, does it warp it or construct it? Should pinpoint where the data is.
Report, edit, etc...Posted by TERRAINFIGHTER on 2005-10-31 at 13:32:30
You should also check if when the probe builds the command center does the action change to the scvs building type (flies over building constructing it) or if it just starts building on its own and lets probe walk around
Report, edit, etc...Posted by Voyager7456(MM) on 2005-10-31 at 16:05:10
I think I found it. In MemGraft there are three actions for buildings, Build Building (Protoss), Build Building (Zerg) and Build Building (Terran).

I changed the Probe's action to Terran, but it didn't build the building at all.

This either means,

1. It's hardcoded to the SCV.

or

2. I forgot something... (likely).

Hope that helps.
Report, edit, etc...Posted by nirvanajung on 2005-10-31 at 17:19:05
yes i had test like u do that

as might be expected, same result ......

so i had other way

i gave button to protos basic bildings, able to creat Terran commandcenter
using Memgraft

and set value below
-------------------------------------
btn group : protos basic bildings

Req type : can creat unit/bld
action type : creat building (toss)

req var : cmdcenter var
action var : same var

string : cmdcenter's text
req string : none


Requirements

Terran Command Center

unit type value : probe

and Asnal3 set the unit

TerranCmdcenter - > set race to Toss

and Tested

see the that result screenshot
-----------------------------------------------
step 1.
can see given Cmdcenter's btn

step2.
probe can creat Cmdcenter

step3
not build just recall like original probe's type confused.gif
warping the CmdCenter......

step 4

at last step SC shutdown run

-----------------------------------------------

My guess memgraft not reference worker's building behavior pattern
units behave properties seem to have connection with Units.dat properties or Maybe Sc game engine call speciall feature of race


have any goodidea about that ?
Report, edit, etc...Posted by Oo.Insane.oO on 2005-10-31 at 18:55:16
Is that just a change in the names and sprite or did you actually change the building process?
Report, edit, etc...Posted by Doodle77(MM) on 2005-10-31 at 19:02:16
yes, he changed building process, changed the action variable for build nexus to build command center
Report, edit, etc...Posted by nirvanajung on 2005-10-31 at 19:38:42
QUOTE(No_Authority @ Oct 31 2005, 05:55 PM)
Is that just a change in the names and sprite or did you actually change the building process?
[right][snapback]345323[/snapback][/right]

yes i process to toss's basic building btn
i just gave btn to probe( build cmd btn process )

i didn't edit unit's sprite properties by Asnall3 , TblEdit and other ...
only those work, change one's sprite

but finally warping progress that's will crash game play
Myguess that reason Memgraft will not change unit's properties

practically certain , Memgraft just change units conditions
Report, edit, etc...Posted by Syphon on 2005-10-31 at 20:39:01
What are you trying to do with your mod, would it be impossible to just mod terrans into protoss that build?
Report, edit, etc...Posted by nirvanajung on 2005-10-31 at 20:56:44
QUOTE(Syphon @ Oct 31 2005, 07:39 PM)
What are you trying to do with your mod, would it be impossible to just mod terrans into protoss that build?
[right][snapback]345434[/snapback][/right]

my mod need to probes working behavior pattern like Terran SCV build behavior

reason is my mod base on medieval ages of China
( name is Three Kingdoms , if know about that mod, then check here http://www.staredit.net/index.php?showtopic=20559)

so toss changed medieval of Chinese one nation

i wanna worker will not build like probe behavior (recall buildings )

so i need turn to Terran Scv construction behavior pattern
Report, edit, etc...Posted by TERRAINFIGHTER on 2005-11-01 at 10:39:09
Well, you may not be able to make the probe act like a scv but you can change the building graphics and iscript to make it look like its being built
Report, edit, etc...Posted by DiscipleOfAdun on 2005-11-01 at 10:51:28
I think that which type of animation it uses to build is hardcoded to the race. You could change what the warp rift looks like, but the worker will still leave the building if it is protoss.
Report, edit, etc...Posted by nirvanajung on 2005-11-01 at 10:54:40
QUOTE(TERRAINFIGHTER @ Nov 1 2005, 09:39 AM)
Well, you may not be able to make the probe act like a scv but you can change the building graphics and iscript to make it look like its being built
[right][snapback]345859[/snapback][/right]

i know but that will just trick (then who's being built that ? automatic build themself ? )

and probe can just away in player order all the while build
Report, edit, etc...Posted by Ermac on 2005-11-03 at 13:16:23
I tried to copy the siege tank(siege mode) properties in Arsenal III, and pasteing it on the probe, well the probe wasnt able to move when building, too bad it was not able to move at all...


So, try to find something that "Immobilizes" the Tank while its in siege mode, and add it when probe is buildings, he won't run around the building, but atleast he should not move...

Im adding a screenie ( It said "you can't build there" but it started building anyway)




Report, edit, etc...Posted by DT_Battlekruser on 2005-11-03 at 19:01:22
Has anyone considered adding an unbreakable code block to the iscript construct animation? I think that overrides unit orders.
Report, edit, etc...Posted by nirvanajung on 2005-11-03 at 22:08:06
QUOTE(Ermac @ Nov 3 2005, 12:16 PM)
I tried to copy the siege tank(siege mode) properties in Arsenal III, and pasteing it on the probe, well the probe wasnt able to move when building, too bad it was not able to move at all...
So, try to find something that "Immobilizes" the Tank while its in siege mode, and add it when probe is buildings, he won't run around the building, but atleast he should not move...

Im adding a screenie ( It said "you can't build there" but it started building anyway)
[right][snapback]347468[/snapback][/right]


Well, but that case not match worker's building behavior pattern
cause that is just change probe's initial properties (basic unit properties), probe can not move and any contorls always

i mean , i guess just Sc Game engine controls worker's build behavior each races
i was seach for Scv,probe and Buildings's Scripts in every look and corner
but i can't found any point of construction building
Report, edit, etc...Posted by Ermac on 2005-11-04 at 03:57:50
Well if you do find out how to change probes' building behaviour please tell me, because i have the same problem in my mod..
Report, edit, etc...Posted by Dr.Shotgun on 2005-11-04 at 18:08:48
Maybe you should just switch the race over to terran or zerg. Zerg, just make sure the guy dies in the building animation.
Report, edit, etc...Posted by nirvanajung on 2005-11-04 at 19:12:52
QUOTE(Dr.Shotgun @ Nov 4 2005, 05:08 PM)
Maybe you should just switch the race over to terran or zerg. Zerg, just make sure the guy dies in the building animation.
[right][snapback]348155[/snapback][/right]


Then just recall building as original behavior or can't work building operation
just switching not effective to changing working (build) behavior pattern

Report, edit, etc...Posted by Dr.Shotgun on 2005-11-06 at 19:14:04
No, I'm saying you don't have to change the building behaviour, since it appears hardcoded.
Report, edit, etc...Posted by nirvanajung on 2005-11-06 at 19:23:17
QUOTE(Dr.Shotgun @ Nov 6 2005, 06:14 PM)
No, I'm saying you don't have to change the building behaviour, since it appears hardcoded.
[right][snapback]349924[/snapback][/right]

i had change the building too ...
but same result....
Report, edit, etc...Posted by Voyager7456(MM) on 2005-11-06 at 19:33:54
I did it! I changed the Probe's building behavior to Terran!

Here's what you need to do (requires the use of MemGraft):

1) Go to the AI/Orders tab in MemGraft.

2) Select one of the Build orders (The one with the Requirement: Current unit must be Terran SCV).

3) Change the requirements so that the Current unit must be Terran SCV OR Current Unit must be Protoss Probe.

Enjoy! biggrin.gif

The problem is it seems to crash part of the way through. This is probably because of the graphics of the Protoss buildings. Not sure what to do to fix it.

ADDITION:
QUOTE(nirvanajung @ Nov 6 2005, 06:32 PM)
really? probe working hang on the building ?

and race situation was Protoss ?

if u did that, i hope know how make that.....
[right][snapback]349933[/snapback][/right]


1) Yes, the probe acted like an SCV, it had to stay in one spot while the building was under construction.

2) Yep, both the Probe and the Nexus were set to Protoss race.


This might help fix the crashing problem (Nexus probably doesn't have a construction animation): http://www.staredit.net/index.php?showtopic=16419
Next Page (1)