urbanyoung / Phasor

Phasor is a server extension for Halo PC which focuses on giving the end-user the ability to deeply customize gameplay. Phasor does this via its scripting system, which uses the Lua language. Scripters are able to react to and change many different aspects of the game.
MIT License
19 stars 9 forks source link

LuaFileSystem Crash #24

Closed twhitcomb closed 11 years ago

twhitcomb commented 11 years ago

I've used this in previous versions of Phasor before and haven't had problems.

https://www.dropbox.com/s/la2bl09ratujrsc/Phasor-01.00.10.059-0017-20130530-091500-5904-6908.dmp

The crash is caused by the line:

require "lfs"

urbanyoung commented 11 years ago

What version of Lua is the filesystem dll made for?

twhitcomb commented 11 years ago

Ah that could be it. I'll download an updated version later and let you know if it works.

twhitcomb commented 11 years ago

Wizard and I are having a lot of issues getting lfs to work with 5.2.. Luaforwindows 5.2 doesn't exist.

urbanyoung commented 11 years ago

Reverted to stock Lua 5.22 (removed timeouts) in 9b696bbff1e2f97292e4b4c664a7645e13129d72

You should be able to replace the DLL I bundle with 5.1 versions and have it work. Let me know if it doesn't and I'll revert to 5.14.

Can you download the build at http://phasorstats.com/testbuilds/Phasor21a.zip and tell me if it works?

urbanyoung commented 11 years ago

Phasor won't support libraries built by Lua for Windows. They're built using VS2005 whereas Phasor uses VS2010, also Phasor requires that lua.dll be built as C++ and not C, this is so that exceptions work correctly. I don't know what options Lua for Windows uses and I haven't been able to get it working. I will include a few libraries with Phasor and can build more as requested.