Search found 18 matches
- 21 Jan 2013, 06:07
- Forum: Lua Scripts
- Topic: functions changin unit sight distance
- Replies: 2
- Views: 759
functions changin unit sight distance
Hi guys, I've been looking at a way of making radio buttons in mod options that switch lines of sight like in OTA. I'm trying to find a function that changes the distances units can see. This is what I've found in the lua synced control documentation: Unit LOS Spring.SetUnitCloak ( number unitID, bo...
- 20 Jan 2013, 21:01
- Forum: Lua Scripts
- Topic: Modoptions
- Replies: 7
- Views: 636
Re: Modoptions
awesome that fixes the lobby issue lol I'm blindBeherith wrote:StartingResourses
StartingResourses
Does this section exist?
Thanks guys
- 20 Jan 2013, 19:17
- Forum: Lua Scripts
- Topic: Modoptions
- Replies: 7
- Views: 636
Re: Modoptions
Well, if it shows "modoptions (0)" then the reason is a problem with modoptions.lua. Try disabling (commenting) parts of it until you find the flaw. do you mean if it shows "modoptions (0)" in the lobby? I guess I didn't explain the output I was getting too well. The normal mod ...
- 20 Jan 2013, 18:52
- Forum: Lua Scripts
- Topic: Modoptions
- Replies: 7
- Views: 636
Re: Modoptions
what I wrote above is exactly what I pasted into the modops file. It's really just a copy of the metal energy stuff just with different names
and yes, nothing shows up
and yes, nothing shows up

- 20 Jan 2013, 18:26
- Forum: Lua Scripts
- Topic: Modoptions
- Replies: 7
- Views: 636
Modoptions
Hi guys, I've been looking at adding a couple of modoptions to a game, but I can't get my options to show up in the lobby. For example: Say I wanted an option to vary the commander's sight range. This is what I'd put in the mod options. { key = "los", name = "Line of Sight", desc...
- 20 Jan 2013, 03:04
- Forum: XTA
- Topic: What causes Vulcan to do dmage to all the units around it?
- Replies: 5
- Views: 2203
Re: What causes Vulcan to do dmage to all the units around i
For me at least, I got reports that the noselfpwn gadget failed. Maybe that's why. Not really sure what it does. There's an exceptions list in the noselfpwn gadget. Vulcan is on that list, so it's doing what it's supposed to. My problem is if I try to put aa around it it takes out the aa and I just...
- 18 Jan 2013, 23:34
- Forum: XTA
- Topic: What causes Vulcan to do dmage to all the units around it?
- Replies: 5
- Views: 2203
What causes Vulcan to do dmage to all the units around it?
What causes Vulcan to do dmage to all the units around it?
thanks
Zyxar
thanks
Zyxar
- 20 Dec 2012, 21:48
- Forum: AI
- Topic: Hello World Lua AI
- Replies: 20
- Views: 6064
Re: Hello World Lua AI
Ok, yes it appears to be the mutation, because it works if I just put it into the mod the usual way
- 20 Dec 2012, 21:41
- Forum: AI
- Topic: Hello World Lua AI
- Replies: 20
- Views: 6064
Re: Hello World Lua AI
It's an xta mutation
maybe I should try putting into the mod?
The attack hotkey just causes them to walk to the unit they're supposed to attack.
maybe I should try putting into the mod?
The attack hotkey just causes them to walk to the unit they're supposed to attack.
- 20 Dec 2012, 21:05
- Forum: AI
- Topic: Hello World Lua AI
- Replies: 20
- Views: 6064
Re: Hello World Lua AI
Ok, that fixed the error, but it still won't let me attack the ai's commander. Do you have any idea why this is?
Thanks
Zyxar
Thanks
Zyxar
- 20 Dec 2012, 17:22
- Forum: AI
- Topic: Hello World Lua AI
- Replies: 20
- Views: 6064
Re: Hello World Lua AI
Ok, I've gotten the ai to move finally taking small steps from printing hello world. I noticed that The "attack" option was missing from the UI, so I tested a pristine mod and it worked like normal. It appears that whatever I did in this gadget for the ai removed the ability to attack from...
- 19 Dec 2012, 03:07
- Forum: AI
- Topic: Hello World Lua AI
- Replies: 20
- Views: 6064
Re: Hello World Lua AI
Wow, thanks a lot. This will probably keep me busy for a while. Thanks for the time you put into explaining this to me.
- 19 Dec 2012, 02:04
- Forum: AI
- Topic: Hello World Lua AI
- Replies: 20
- Views: 6064
Re: Hello World Lua AI
Ok, so returns the ID of the player, then what does return?
I read the lua synced read page and it says that the output is
Code: Select all
Spring.GetMyTeamID()
Code: Select all
Spring.GetTeamLuaAI()
I read the lua synced read page and it says that the output is
This doesn't seem right to me.Spring.GetTeamLuaAI
( number teamID ) -> string "luaAI"
- 18 Dec 2012, 21:31
- Forum: AI
- Topic: Hello World Lua AI
- Replies: 20
- Views: 6064
Re: Hello World Lua AI
Ok, So I've made the ai (if it can be called that at this point) print different messages at different frames. Now I am having trouble getting the commander to actually DO something. I have had a look at the spring tanks ai and tried to simplify it, but I'm not getting anywhere with it. thanks for t...
- 18 Dec 2012, 17:03
- Forum: AI
- Topic: Hello World Lua AI
- Replies: 20
- Views: 6064
Re: Hello World Lua AI
Now what I'm wrestling with is bridging the gap between that gadget and an ai gadget. Do I just replace the Spring.Echo() with stuff like Spring.GiveOrderToUnit()? I came up with something like some function that gets the ai's team ID local myunits = Spring.GetTeamUnits(myteamid) for i, o in pairs(m...
- 18 Dec 2012, 15:35
- Forum: AI
- Topic: Hello World Lua AI
- Replies: 20
- Views: 6064
Re: Hello World Lua AI
Ok, so I have written a gadget that spams "Hello World!" every game frame. If I try to sync the code and run it in single player it fails. Is this because spring doesn't take into account that you're the only human in the game? If I were to run this in a two-player game with the synced cod...
- 18 Dec 2012, 05:16
- Forum: AI
- Topic: Hello World Lua AI
- Replies: 20
- Views: 6064
Re: Hello World Lua AI
I've looked at the spring tanks ai some, but I don't have a whole lot of knowledge about that game. I started playing ota and recently found spring, so I mostly enjoy playing xta. I'm attempting to write a more agressive ai to supplement rai's strong base-building skills. Anyway, what I understand i...
- 18 Dec 2012, 04:48
- Forum: AI
- Topic: Hello World Lua AI
- Replies: 20
- Views: 6064
Hello World Lua AI
Hi, I've been looking at some lua ai scripts and am having some trouble writing something that works. The ai page dedicated to lua ais is pretty sparse. I'm wondering if anyone can help me with figuring out what is necessary to have in order to write a lua ai, and an explanation of what each part do...