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



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.
[02:28 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: NudeRaider non-sequitur harder daddy
no shit sherlock. I wanted you explain what you mean with time capsule (hence the question mark!), because obviously what follows makes no sense. For someone so intelligent you can be quite daft at times...
[04:00 am]
Oh_Man -- NudeRaider
NudeRaider shouted: time capsule? you don't talk to 90s kids outside of SEN?
non-sequitur harder daddy
[02:56 am]
Symmetry -- Talk to people? Like in real life?
[2026-9-30. : 3:07 pm]
NudeRaider -- time capsule? you don't talk to 90s kids outside of SEN?
[2026-9-30. : 1:57 pm]
Oh_Man -- SEN is kinda like, a place wher u can be pretty much gauranteed u talking to a millenial, prob born around the early 1990s, its like a time capsule
[2026-9-30. : 1:05 pm]
NudeRaider -- well he is calling himself weirdo...
[2026-9-30. : 3:25 am]
Symmetry -- the best part is that he perfectly summed up SEN's discord
[2026-9-30. : 3:12 am]
Ultraviolet -- WeirdoX4857
WeirdoX4857 shouted: Nigga how you ask is it still going strong when you get a text every 3 miles per hour or something
Joined: Yesterday, 12:08 pm Last Active: Yesterday, 12:14 pm , truly a glorious 6 minutes.
[2026-9-30. : 3:11 am]
Ultraviolet -- :lol:
[2026-9-29. : 2:43 am]
Symmetry -- I'm doing my best, damn it
Please log in to shout.


Members Online: lil-Inferno