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.
[01:13 pm]
Oh_Man -- NimoStar
NimoStar shouted: yes, all animations for protoss and zerg should be there, unless I missed any
daymn, impressive
[12:03 pm]
NudeRaider -- define "completely fucked" - could also be a good thing :teach:
[04:23 am]
NimoStar -- yes, all animations for protoss and zerg should be there, unless I missed any
[12:43 am]
Moose -- Dem0n
Dem0n shouted: Moose, you ever go to sleep knowing that you're completely fucked for the next day? I do it every night.
tbh
[04:20 pm]
Oh_Man -- did you give all animations for researching/recruiting buildings for protoss and zerg?
[01:52 pm]
NimoStar -- prerelease of improves 1.16.1
[01:51 pm]
NimoStar -- www.moddb.com/mods/ultimate-starcraft-age-of-darkness/downloads/ultimate-starcraft-age-of-darkness-secret-beta-release
[2026-8-13. : 3:03 am]
Symmetry -- Roy the way the screen moves hurts my eyes but otherwise it plays remarkably well
[2026-8-12. : 5:23 pm]
Roy -- Moose
Moose shouted: Just made? I thought we had that years ago
"We have Super Mario at home."
[2026-8-11. : 4:44 am]
Zycorax -- :wob:
Please log in to shout.


Members Online: jun3hong, NudeRaider, Oh_Man