But interestingly enough, this causes the meteors to spawn from correct altitude, but if i remove that tag (and the error in luarules), then they will spawn at ground level, and it seems that Spring.MoveCtrl.SetPosition (meteorID,mx,mh,mz) doesn't help.
Joined: 22 Feb 2006, 01:02 Location: cheap kitchen
Quote:
No, it doesn't find it with give, and if I add it manually with the quotation marks as "cmeteor", then the createunit function will fail.
if the unit does not work with /give, it basically does not exist. Spring might have failed loading the unit because of a missing { or , Is there nothing in infolog about cmeteor? like ERROR: cmeteor expected } to close bla at line blub?
It works now if you use SetUnitPosition instead of Ctrl.MoveUnit.
I'm working on a way to let meteors spawn xta aids units, and giving them to the closest player, that way, this map may become less porcy (because it gives incentive to control territory).
Currently I can only use some 3d objects, if I try to use those from CT or from springfeatures, the game will crash. Is there some lua file that's needed in order to use newer models?
As reference for other devnoobs, in order to enable lua formed unit scripts, you must create a file in Luarules called "unit_script.lua" with the following content "return include("LuaGadgets/Gadgets/unit_script.lua")"
Joined: 22 Feb 2006, 01:02 Location: cheap kitchen
Quote:
Currently I can only use some 3d objects, if I try to use those from CT or from springfeatures, the game will crash. Is there some lua file that's needed in order to use newer models?
no lua needed for 3d objects. did you also copy the texture?
Here's how it works: if you get one these alien kbot lures on your team, further aliens are more likely to join you. And some of these aliens are quite strong, especially if you play with the xta mod (it has a lot of lol-units).
Joined: 22 Feb 2006, 01:02 Location: cheap kitchen
btw this:
Code:
local joinDistance = 1000 if not Spring.GetMapOptions().joindist == nil then joinDistance = Spring.GetMapOptions().joindist end
can be written as:
Code:
local joinDistance = Spring.GetMapOptions().joindist or 1000
Did not test but I think the spawnedframe thing to stop "lost" meteors after /luarules reload is not reliable in all situations. The reason why they fly on, is that the content of the meteors table is of course lost on lua reload. So on reload the gadget, you would have to to refill it. In ct harvesting there is basically the same for miners and dropoffs:
Ok yeah, thanks, I'm not really familiar with lua (I only have a course in Java). So my code is quite ugly, but instead I have tested it a lot. And I wanted to be sure to avoid errors, since I didnt find any error handler class or similar.
I tested the lost meteor handling a lot, and I didnt find any errors. Of course I didn't reload luarules a lot, for me a luarules /reload didn't reload the gadget, so I didn't work that way. There is one other check I added and that's when the function spawns meteors outside the map, then they will not have a x-component and the getgroundheight will fail.
Nope, they are some kind of portals I assume. I didn't see them have any function after spawned, so that's why I added that extra use of them, because their effect is very nice.
I redesigned the whole terrain with Carrara, fixed many bugs and made a basic AI for handling the aliens.
I don't experience any lag with this map, but I don't have the right hardware to test it either, so I would be happy if people could report how this map behaves on their hardware.
Screenshots:
Oh, by the way. The map is now ssmf in the sense that it has a specular map. I didn't see the value of adding splats when there are just two terrain types: water and ice.
Joined: 22 Feb 2006, 01:02 Location: cheap kitchen
if you replace it on sf, the old version will no longer be downloadable from there. It does not get deleted though, but there simply is no link. Lobbies can also still download the old version and !maplink will also give a working link. So replace it.
Ooh :-) I played your old version of Anteer Strait, and liked it a lot. The trouble was that the spawning didn't really work as it was supposed to (I assume it was an engine version compatibility thing).
Sea maps can be highly entertaining, especially those that are as cruel as this one. There's almost no metal (too much metal is my map pet peeve), and then you get pelted with meteors.
It was the aliens. They never seemed to actually shoot at players or be allied to players. My units would just attack them obsessively, even though they weren't a threat. Anyway, I'll see how this new one works.
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum