Search found 20 matches
- 10 Apr 2011, 05:41
- Forum: Lua Scripts
- Topic: MouseRelease not running
- Replies: 2
- Views: 589
Re: MouseRelease not running
Aaaah, thank you. That should be mentioned in the wiki, methinks.
- 10 Apr 2011, 04:57
- Forum: Lua Scripts
- Topic: MouseRelease not running
- Replies: 2
- Views: 589
MouseRelease not running
I have the following code: function widget:MousePress(x, y, button) echo("Mouse pressed") if button == 3 then CancelButton() end end function widget:MouseRelease(x, y, button) echo("Mouse released.") if button == 1 then echo("Left mouse button released at: " .. x .. &qu...
- 08 Apr 2011, 02:46
- Forum: Lua Scripts
- Topic: UI Texturing
- Replies: 2
- Views: 589
Re: UI Texturing
The texture isn't created, instead someTextureString is the path and filename of the image to use. Are you sure you have the file "LuaUI/Images/test.png" present and a valid PNG? Otherwise yeah it should be as simple as: gl.Color(1,1,1,1) gl.Texture("bitmaps/icons/frame.png") gl...
- 08 Apr 2011, 00:22
- Forum: Lua Scripts
- Topic: UI Texturing
- Replies: 2
- Views: 589
UI Texturing
What is the proper way to create a textured UI in Lua Widgets? I looked up the gl.Texture and gl.CreateTexture call-outs in the wiki, but I'm confused as to how exactly I should be using them. I was also looking through the Kernel Panic code, and noticed the code: gl.Texture(someTextureString) witho...
- 07 Apr 2011, 23:21
- Forum: Lua Scripts
- Topic: Windows 7 Lua Debugging
- Replies: 5
- Views: 1389
Re: Windows 7 Lua Debugging
I can't seem to find any infolog.txt anywhere in the Program Files/Spring directory. I checked pretty much every folder, as far as I can tell.FLOZi wrote:Run in a window (as you probably are anyway) and just read infolog.txt?
EDIT: Derp, found it in Documents. Thanks!
- 07 Apr 2011, 23:16
- Forum: Lua Scripts
- Topic: Windows 7 Lua Debugging
- Replies: 5
- Views: 1389
Windows 7 Lua Debugging
Is there an easy way to capture the console output of Spring during start-up of the game/mod, similar to if you were to run Spring in a Unix environment? I usually have a terminal that I use to run Spring on a Mac, but I'm currently in a Windows 7 environment and am unable to see the error messages ...
- 18 Mar 2011, 17:03
- Forum: Lua Scripts
- Topic: Synced/Unsynced Communication
- Replies: 16
- Views: 3890
Re: Synced/Unsynced Communication
You want to use spairs instead of pairs/ipairs on the table for iterating it. (It's not a real table but a proxy, hence pairs doesn't work on it.) See also: http://springrts.com/wiki/Lua_sync_to_unsync Ah ha! I never saw that subtle detail when looking at that page before. Much appreciated for poin...
- 17 Mar 2011, 21:25
- Forum: Lua Scripts
- Topic: Synced/Unsynced Communication
- Replies: 16
- Views: 3890
Re: Synced/Unsynced Communication
Here is the entire gadget at pastebin: http://pastebin.com/HWqktM11
- 17 Mar 2011, 21:07
- Forum: Lua Scripts
- Topic: Synced/Unsynced Communication
- Replies: 16
- Views: 3890
Re: Synced/Unsynced Communication
So since the tables are handled by reference, and I put the reference into _G.regions, and access it via SYNCED.regions, why am I still getting a nil value in my unsynced section? Is the reference wiped when I access it once, so I have to store it separately and use that? Or is there something else ...
- 17 Mar 2011, 16:35
- Forum: Lua Scripts
- Topic: Synced/Unsynced Communication
- Replies: 16
- Views: 3890
Re: Synced/Unsynced Communication
Sorry to double-post, but I didn't feel that my question warranted an entirely new thread when it's on the same topic as I posted before. I've been re-doing my code a good amount, and I currently have communication between an unsynced widget and a synced gadget working properly with nice parsing and...
- 05 Mar 2011, 06:44
- Forum: Lua Scripts
- Topic: Synced/Unsynced Communication
- Replies: 16
- Views: 3890
Re: Synced/Unsynced Communication
I noticed those before, but for some reason assumed that all of them were used for transmitting data from one person to all other people as well and that they would incur a large upload overhead from that and was thinking there was another way to do it purely locally or something. Yes, but there's ...
- 05 Mar 2011, 05:56
- Forum: Lua Scripts
- Topic: Synced/Unsynced Communication
- Replies: 16
- Views: 3890
Re: Synced/Unsynced Communication
Ah ha, I feel dumb now. I noticed those before, but for some reason assumed that all of them were used for transmitting data from one person to all other people as well and that they would incur a large upload overhead from that and was thinking there was another way to do it purely locally or somet...
- 05 Mar 2011, 05:20
- Forum: Lua Scripts
- Topic: Synced/Unsynced Communication
- Replies: 16
- Views: 3890
Synced/Unsynced Communication
To start off, I would like to say that yes, I did read this page and the pastbinned code. It looks like it works great. However, it doesn't quite solve the problem that I am having. What I would like to have is a way to facilitate two-way communication between synced/unsynced portions of a gadget. I...
- 08 Feb 2011, 21:19
- Forum: Mac OS X
- Topic: Spring compile failing (Undefined symbol _main) -- SOLVED
- Replies: 9
- Views: 3665
Re: Spring compile failing (Undefined symbol _main) -- SOLVED
no pb. :-) btw, if you feel like having time to tickle the latest official release, feel free to give it a go. I'd gladly use a little help here, as my days and nights are a bit dense at the moment. Will open a thread about my progress soon (hopefully this week). daft Yeah I understand the feeling ...
- 02 Feb 2011, 04:16
- Forum: Mac OS X
- Topic: Spring compile failing (Undefined symbol _main) -- SOLVED
- Replies: 9
- Views: 3665
Re: Spring compile failing (Undefined symbol _main)
FINAL UPDATE! It's working! Alright, so here are all of the steps that I had to go through to get this working, and all of the things that happened that resulted in errors. Hopefully this information can be used at some point to improve building on Mac or help out another person. First, I used MacPo...
- 01 Feb 2011, 22:01
- Forum: Mac OS X
- Topic: Spring compile failing (Undefined symbol _main) -- SOLVED
- Replies: 9
- Views: 3665
Re: Spring compile failing (Undefined symbol _main)
Yet another update: Ok, I had to fiddle with things a bit, but I've made some progress. I am no longer getting the _main symbol not found problem, and it is properly finding SDL. (the previous error log I posted indicated that none of the SDL headers were being found) Here are the steps that I took ...
- 01 Feb 2011, 20:42
- Forum: Mac OS X
- Topic: Spring compile failing (Undefined symbol _main) -- SOLVED
- Replies: 9
- Views: 3665
Re: Spring compile failing (Undefined symbol _main)
Ok, so just to try to make sense out of much enthusiasm and ideas, I'll just give you a hint on a few facts that I've either experienced, learnt or just noticed so far: By removing the stock SDL from Mac OS and keeping only MacPorts's one in opt/local, the install finds it and works fine for the ve...
- 01 Feb 2011, 18:53
- Forum: Mac OS X
- Topic: Spring compile failing (Undefined symbol _main) -- SOLVED
- Replies: 9
- Views: 3665
Re: Spring compile failing (Undefined symbol _main)
UPDATE ON PROGRESS/FINDINGS: (I apologize for the double post, but I do not know how to indicate that this is still being worked on otherwise. just editing a post will not flag a topic as having new content. sorry! :( ) When searching around the internet for solutions to the problem of the _main sym...
- 26 Jan 2011, 23:27
- Forum: Mac OS X
- Topic: Spring compile failing (Undefined symbol _main) -- SOLVED
- Replies: 9
- Views: 3665
Re: Spring compile failing (Undefined symbol _main)
the SDL issue is a permanent hassle :( ok, could you try moving your /System/Library/Frameworks/SDL.Framework folder somewhere else (your homedir for instance). I recall seeing conflicts between the stock SDL version and the one installed by MacPorts when building spring. Personally I deleted the s...
- 26 Jan 2011, 20:44
- Forum: Mac OS X
- Topic: Spring compile failing (Undefined symbol _main) -- SOLVED
- Replies: 9
- Views: 3665
Spring compile failing (Undefined symbol _main) -- SOLVED
I am attempting to compile Spring via the Spring on Mac OSX tutorial with macports, but I am getting an error when it attempts to compile Spring (everything else seems to have installed fine). I am running Snow Leopard 10.6.5 on a Macbook Pro with a core i7 and an Nvida Geforce GT330. XCode is versi...