43 Commits

Author SHA1 Message Date
Perttu Ahola
15e9dbcc95 Hack and rape everything so that everything works on Windows and Linux 2014-10-04 00:12:40 +03:00
Perttu Ahola
a001b1ba64 client: Clean interface to scene replication (hide the hack inside client/app and client/replication.lua) 2014-10-03 12:19:41 +03:00
Perttu Ahola
8c98b56653 client/default.pak: Delete unused Polycode resource file 2014-10-03 01:55:33 +03:00
Perttu Ahola
cb6b59ac41 WIP 2014-10-02 14:38:59 +03:00
Perttu Ahola
c6a88ac4ce WIP 2014-10-02 13:52:48 +03:00
Perttu Ahola
a0872fec6f client/sandbox.lua: Fix string concatenation when creating an error message 2014-09-29 23:47:16 +03:00
Perttu Ahola
ba42488bf8 extensions/sandbox_test: When loaded, start checking values at runtime as reported by magic_sandbox 2014-09-28 15:25:08 +03:00
Perttu Ahola
1148decb2a extensions/sandbox_test: Search for exploits in latest real sandbox environments and a test sandbox environment (KEY_F10) 2014-09-28 12:57:47 +03:00
Perttu Ahola
c54cda99ff client: Clean up logging 2014-09-28 00:44:45 +03:00
Perttu Ahola
94f94c0f0d client/extensions.lua: Put our Lua package loader first in package.loaders to get rid of unnecessary extension lookups in disallowed files 2014-09-27 23:38:48 +03:00
Perttu Ahola
3917701b47 client: Use sandboxed urho3d in extensions for interoperability with modules 2014-09-27 15:29:50 +03:00
Perttu Ahola
0965047f89 client: buildat.disconnect() 2014-09-27 09:58:16 +03:00
Perttu Ahola
6e8a85e51d client: buildat.extension_path(name) 2014-09-27 07:44:54 +03:00
Perttu Ahola
8f44b7490a buildat.connect_server(address) -> status, error 2014-09-26 16:36:14 +03:00
Perttu Ahola
fbc8c98931 util/codestyle.sh: Fix Lua Vim modeline magic 2014-09-24 15:13:49 +03:00
Perttu Ahola
abab2f9ee0 Apply Vim modeline magic to everything 2014-09-24 14:54:15 +03:00
Perttu Ahola
3157198a30 buildat.run_script_file: Add to client_api.txt and switch from instance-style to namespace-style call 2014-09-24 14:17:16 +03:00
Perttu Ahola
3110d21c3c Dynamic resource reloading works as long as files aren't deleted in between like what git checkout does 2014-09-24 10:58:46 +03:00
Perttu Ahola
625d7a53c1 client: Loading resources received from server works 2014-09-24 01:13:26 +03:00
Perttu Ahola
1c2111e266 Wrap global variables created by sandbox so that they don't pollute the actual global sandbox table 2014-09-24 01:13:26 +03:00
Perttu Ahola
12d7465f4e Move client/urho3d.lua to extensions/urho3d 2014-09-24 01:13:26 +03:00
Perttu Ahola
d934d02f6e testmodules/test1: Shows a 3D scene controllable by user input; add and fix other things to support it 2014-09-24 01:12:16 +03:00
Perttu Ahola
76778cd2e7 Client is now able to start and run code sent by server 2014-09-24 01:12:16 +03:00
Perttu Ahola
e9c4f5a468 extensions/polycode_sandbox: Automagic sandbox wrapper for Polycode's Lua class model - now sandboxed code can subclass classes provided by Polycode 2014-09-22 01:23:47 +03:00
Perttu Ahola
7dce426a29 extensions/ui: Initial base, with related changes in a lot of places 2014-09-21 12:42:53 +03:00
Perttu Ahola
ae155d9d4a client/extensions.lua: Log errors properly when an extension has invalid syntax 2014-09-21 11:12:19 +03:00
Perttu Ahola
38e927a1c3 client/init.lua: Don't dofile default.lua (it was removed previously) 2014-09-21 10:31:58 +03:00
Perttu Ahola
5dcde57c38 client: Fix undescriptive error message when extension module returns nil 2014-09-21 10:18:11 +03:00
Perttu Ahola
f456b110e4 Prepend license notice to all lua files 2014-09-21 01:20:43 +03:00
Perttu Ahola
1d6876c79f Remove client/default.lua 2014-09-21 00:47:50 +03:00
Perttu Ahola
81c6876703 Clean up and make more robust a large portion of Lua support code 2014-09-21 00:47:40 +03:00
Perttu Ahola
175c06ba5e client/sandbox.lua: Add assert() to sandbox environment 2014-09-20 19:59:45 +03:00
Perttu Ahola
eb9e2ada26 client/lua: buildat.bytes(data) 2014-09-20 14:19:20 +03:00
Perttu Ahola
d6179bcd01 extensions/mouseinput and client/default.lua 2014-09-20 03:02:25 +03:00
Perttu Ahola
0c7d5602bb client: Packet handling in Lua; extensions/cereal 2014-09-20 03:02:25 +03:00
Perttu Ahola
b991ce1149 client/sandbox.lua: Add a safe subset of the standard library to the sandbox environment 2014-09-20 03:02:25 +03:00
Perttu Ahola
66ab5c1985 builtin/client_file, interface/file_watch: Watch changes in automatically transferred files and reload content for new clients 2014-09-19 16:46:17 +03:00
Perttu Ahola
4301546f2e buildat:Logger -> buildat.Logger 2014-09-19 14:50:25 +03:00
Perttu Ahola
3db773a999 client/lua: buildat.dump 2014-09-19 13:38:10 +03:00
Perttu Ahola
b5db1b839e client: Improve Lua error handling and sandbox run_script() 2014-09-19 13:17:22 +03:00
Perttu Ahola
20cf5c4390 client: Get full traceback on lua_pcall() error 2014-09-19 12:51:02 +03:00
Perttu Ahola
dd39767cf5 client/extensions 2014-09-19 11:29:59 +03:00
Perttu Ahola
fc03490d78 Move stuff from /share to / 2014-09-19 10:40:10 +03:00