it says Subject: what do i type here?

it says Subject: what do i type here?

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
Andrej
Posts: 176
Joined: 13 Aug 2006, 18:55

it says Subject: what do i type here?

Post by Andrej »

------
EDIT:
i fail
change lua.c line 370
s.argc = argc_alt to s.argc = argc
change lua.c line 370
s.argv = argv_alt to s.argv = argv
------

so lua sucks and im trying to make nonfail syntax

http://www.darkstars.co.uk/downloads/vi ... ly_v02.zip

1need bet----~^////alpha testers
2totally not virus
3uploaded to AFs failsite so link probably dead
4.exe's are in the file in src/ dir but unless you want to create
a file named C:\Bfolder\lollua\lua51curly\src\test.lua you will want to recompile
( read = hardcoded because i dont know how to pass arguments to the debugger in Eclipse ) ( preferably use: make posix )
5example syntax:
------

Code: Select all

a = {[1]="wwww"}
print(a[1])

if (true)
{
print("HI")
}

while (x1==nil)
{
print("WHILE")
x1=false
}

do
{
print("DO")
}

x2=1

repeat
{
print("REPEAT")
x2 = x2 + 1
}
until
{
x2 == 3
}

x3 = function(x)
{
print(x)
}
x3("FUNCTION")

for x=1,2,1
{
print("FOR1")
}

x4 = {1,2,3}
for k,v in pairs(x4)
{
print("FOR2" .. "|" .. v)
}
------
6not backwards compatible ( yet )
so if (xxx) then www end fails
if (xxx) { www } only
final destination
Andrej
Posts: 176
Joined: 13 Aug 2006, 18:55

Re: it says Subject: what do i type here?

Post by Andrej »

lesson learned here is dont post if too stoned = bad

http://www.darkstars.co.uk/downloads/vi ... ly_v03.zip

fixed version

changelog:
-actually compiles without editing lua.c zomg
-fixed 4 that was retarded
-fixed 6, you should now be able to use both the old and the
new {}ish syntax if cant report bug thanks
-the test.lua file in src/ directory was used for testing
Masure
Posts: 581
Joined: 30 Jan 2007, 15:23

Re: it says Subject: what do i type here?

Post by Masure »

Your code is fail. Try lolcode instead.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: it says Subject: what do i type here?

Post by rattle »

it says Message body: what do I type here
Andrej
Posts: 176
Joined: 13 Aug 2006, 18:55

Re: it says Subject: what do i type here?

Post by Andrej »

i have finally managed to compile spring with curly brace using lua :w

favourite compiler related error:
spring using lua 5.12 but my code is for 5.1 >.<
ALSO WRONG LIBSTDC++ WHAT THE FUCK

favourite non-compiler related error:
pic related
Image
DO NOT USE ECLIPSE GIT PLUGIN IT WILL EAT YOUR FUCKING FILES
FUCK

additional changes:
-while xxx do yyy end doesnt compile to do yyy end eating the while statement anymore
-closing if loops requiring two ends fixt


files:
http://www.darkstars.co.uk/downloads/vi ... spring.zip

i zipped the whole /game/ folder
except: otacontent.sdz, /mods/ folder and /maps/ folder

if you get missing content cannot find mods/maps error
use AA146 and brazilianbattlefieldv2
or go copy archivecontentv7.lua from a svn spring build

need teeeeeeeest if you find a widget/gadget that doesnt work
or crashes more than usual post please
(also remember every download costs AF 16MB of bandwidth mwahaha)
Post Reply

Return to “Lua Scripts”