adding landing pad lights on a skirmish map
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: adding landing pad lights on a skirmish map
In the last file uploaded, the PIE still has test.png in it, instead of the texture name.
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
-
carbon dude oxide
- Trained

- Posts: 141
- Joined: 28 Apr 2011, 07:46
Re: adding landing pad lights on a skirmish map
ive fixed that now but it is still crashing the game :/
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: adding landing pad lights on a skirmish map
structure.cpp:2047 mentioned in the dump refers to the rearm pad's rearm function that should mentioned structurefunctions.txt and is controlling rearm speed. Try adding the function reference there or using another structure type.
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
-
carbon dude oxide
- Trained

- Posts: 141
- Joined: 28 Apr 2011, 07:46
Re: adding landing pad lights on a skirmish map
i tried another structure type and it works
i know have two questions
1. ho can i animate a texture on it and 2, is there a way of having a script for the structure
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: adding landing pad lights on a skirmish map
2. what sort of script are you looking for?
if you want to put just it on a map, then just merge your mod into FlaME objectdata and compile the map (you'd still need to merge the mod into the map manually as well). If you want it to appear and disappear during the game, adjust rules.js with addStructure/removeStructure calls.
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
-
carbon dude oxide
- Trained

- Posts: 141
- Joined: 28 Apr 2011, 07:46
Re: adding landing pad lights on a skirmish map
well i have a couple of ideas just for me to mess around with
is there a way of using a script to call a function when a unit touches a specific structure (i.e when it touches my new structure)? 
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: adding landing pad lights on a skirmish map
There's no such event (and i'm not sure the very notion of touching is well-defined in the code), so probably you just need to repeatedly check whether a unit is aroundwhen a unit touches a specific structure
___________________
Hey, i just found something. Check out setNoGoArea()
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
-
carbon dude oxide
- Trained

- Posts: 141
- Joined: 28 Apr 2011, 07:46
Re: adding landing pad lights on a skirmish map
NoQ wrote:There's no such event (and i'm not sure the very notion of touching is well-defined in the code), so probably you just need to repeatedly check whether a unit is aroundwhen a unit touches a specific structure
___________________
Hey, i just found something. Check out setNoGoArea()![]()
how would i use this?
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: adding landing pad lights on a skirmish map
You do not have the required permissions to view the files attached to this post.
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
-
carbon dude oxide
- Trained

- Posts: 141
- Joined: 28 Apr 2011, 07:46
Re: adding landing pad lights on a skirmish map
i see
thanks alt
i shall riffle threw the API to see what i can do
im guessing anything i want to add to the game that needs scripting i ill have to add it to rules.js?
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: adding landing pad lights on a skirmish map
In fact, if you want to make a single-player challenge map, you can also add things to a script with arbitrary name and mention it in the challenge .ini file. Unless you actually want to change game rules.im guessing anything i want to add to the game that needs scripting i ill have to add it to rules.js
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
-
carbon dude oxide
- Trained

- Posts: 141
- Joined: 28 Apr 2011, 07:46
Re: adding landing pad lights on a skirmish map
is there a way of making a new structure type with its own functions?
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: adding landing pad lights on a skirmish map
Not with scripts, only as mentioned above.
Check out these links, they are a 100% complete description of the whole js engine we have (also this one, for sure).
P.S. i was seriously surprised to find out that putting model textures into vidmem*.wrf is actually unnecessary
nice, this means i can increase compatibility of some of my mods by removing these files.
Check out these links, they are a 100% complete description of the whole js engine we have (also this one, for sure).
P.S. i was seriously surprised to find out that putting model textures into vidmem*.wrf is actually unnecessary
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
-
carbon dude oxide
- Trained

- Posts: 141
- Joined: 28 Apr 2011, 07:46
Re: adding landing pad lights on a skirmish map
following up on all of this
is there a way of moving a unit from x,y to another x,y coordanate?
-
Berg
- Regular

- Posts: 2204
- Joined: 02 Sep 2007, 23:25
- Location: Australia
Re: adding landing pad lights on a skirmish map
Very Interesting can have feed back if it works please?NoQ wrote:P.S. i was seriously surprised to find out that putting model textures into vidmem*.wrf is actually unnecessarynice, this means i can increase compatibility of some of my mods by removing these files.