Staredit Network > Forums > Modding Assistance > Topic: Problem with defences
Problem with defences
Dec 4 2010, 5:59 pm
By: assasing123  

Dec 4 2010, 5:59 pm assasing123 Post #1



so i made a mod where the automatic defences from instalations can be build, however i have a little issue, when i order an scv to build them, it instantly takes the mineral and once it starts building them again it takes mineral, also there is no build animation, after checking i noticed those turrets are considered units so i changed their flag to building, that fixed the no animation issue and the double pay issue, but gave me the problem that as soon the defence is finished building, the game crashes, ideas?



None.

Dec 4 2010, 9:04 pm Sand Wraith Post #2

she/her

You're better off modding an existing building to mimic the Turrets.

E.g. take a Supply Depot, change its building animation, its stats, and have it use the Turret's GRP.

You might want to link the Depot (or other standard building) with its default iscript and then copy/paste the relevant idle and attack animations from the Turret, while modifying the building animation to fit the turret (i.e. use the building frame GRP that the T Missile Turret uses, instead of the default Supply Depot under-construction graphic, because of size issues).

You will also have to give it the relevant buttons (and probably AI actions; I would copy these from the Photon Cannon).




Dec 5 2010, 10:50 pm Voyager7456 Post #3

Responsible for my own happiness? I can't even be responsible for my own breakfast

You need to modify the Floor Gun's iscript. Look at the iscript for some of the regular buildings. I don't believe it has the correct init/almost built animations... not 100% positive since the last time I edited the Floor Gun was for SCFC... 5+ years ago? In any case, the answer is in the iscript. You should be able to figure it out.



all i am is a contrary canary
but i'm crazy for you
i watched you cradling a tissue box
sneezing and sniffling, you were still a fox


Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA] | Robots vs. Humans | Leviathan Wakes [BETA]


Apr 11 2013, 5:08 am assasing123 Post #4



did modify the iscript but it would keep crashing once it tried to attack and in other momments, decided to leave it as unit and just add a note to my mod until someone comes up with a solution.



None.

Apr 11 2013, 2:07 pm Voyager7456 Post #5

Responsible for my own happiness? I can't even be responsible for my own breakfast

Would you mind posting your iscript?



all i am is a contrary canary
but i'm crazy for you
i watched you cradling a tissue box
sneezing and sniffling, you were still a fox


Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA] | Robots vs. Humans | Leviathan Wakes [BETA]


Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
[2024-5-17. : 4:35 am]
Ultraviolet -- mud, meet my friend, the stick
[2024-5-16. : 10:07 pm]
lil-Inferno -- nah
[2024-5-16. : 8:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[2024-5-16. : 5:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[2024-5-16. : 5:24 pm]
lil-Inferno -- poopoo
[2024-5-16. : 5:14 pm]
UndeadStar -- I wonder if that's what happened to me. A returned product (screen) was "officially lost" for a while before being found and refunded. Maybe it would have remained "lost" if I didn't communicate?
Please log in to shout.


Members Online: RIVE, Wing Zero, 1carolinee471rM1