aboutsummaryrefslogtreecommitdiff
path: root/advtrains
Commit message (Expand)AuthorAge
...
* Add command to throw all players out of trains, fixes #78orwell962017-06-12
* Fix broken door animations caused by continuous set_object_properties() messa...orwell962017-06-08
* lower capacity of freight carsorwell962017-06-08
* Change log level of save_all message to atprint()orwell962017-06-08
* Do not clear the F table when running the init code failsorwell962017-06-08
* Merge pull request #67 from AntumDeluge/settingsorwell962017-06-08
|\
| * Replace deprecated methods:AntumDeluge2017-06-07
* | Check if 'digtron' global exists before calling in condition:AntumDeluge2017-06-07
|/
* Add loading/unloading rails (#63)gpcf2017-05-31
* Fix still broken ndb restoring, and make sid() honor nil valuesorwell962017-05-31
* Fix detector rails changing to default orientationorwell962017-05-30
* Re-add option for debugging features and add option to disable collisionsorwell962017-05-30
* Fix collision bug (trains driving through each other)orwell962017-05-30
* Re-add debug ring buffer and print its contents on a lua crashorwell962017-05-30
* Fix command + Update zip file - Version 1.8orwell962017-05-22
* Add Digtron compatibilityorwell962017-05-22
* Fix some 'undeclared assignment' warningsorwell962017-05-22
* Fix Syntax Errororwell962017-05-22
* Fix issue #40orwell962017-05-22
* Remove the debug settingorwell962017-05-22
* Fix a series of bugsorwell962017-05-22
* Don't invoke conway on a path item that has been over-generatedorwell962017-05-15
* write the saved nodedb state back to the map when restoring after a crashorwell962017-05-12
* Remove pos_to_string whereever possible to prevent crashesorwell962017-05-12
* Relicensing media under CC-BY-SAorwell962017-05-04
* Performance improvements: Don't clear paths unless absolutely necessaryorwell962017-05-03
* Merge nocrash branch into master and merging it with the unified functions so...orwell962017-04-29
|\
| * Add pcall wrapper to prevent server crashes when advtrains throws an errororwell962017-04-29
* | Unify globalstep, load and save of all components into single functionsorwell962017-04-29
|/
* Add Andrew's Crossorwell962017-04-27
* Fix bug introduced by last commit (revert change)orwell962017-04-12
* Add privilege for basic train operation.orwell962017-04-09
* record_protection_violation: fix player name not being passedorwell962017-04-07
* Fix #59orwell962017-04-05
* Actually check for protection when placing trains and use the train_place pri...orwell962017-04-02
* Assert some variable types obtained from lua automationorwell962017-03-30
* Add support to display text to passengers and on the outside of the trainorwell962017-03-30
* Respect protection_bypass privilege, fix crash with areas and properly record...orwell962017-03-30
* Fix privilege enforcement being uselessorwell962017-03-16
* Fix Atc arrows pointing into wrong directionorwell962017-03-12
* Screw buttonlike rules for wall signals and use regular rules.orwell962017-03-12
* Redo rail modelsorwell962017-03-12
* Don't drop items in creative mode when player gets overrun by trainorwell962017-03-11
* "Sneak" instead of "Shift" for the sneak keyorwell962017-03-09
* Update manual and include everything in repoorwell962017-03-09
* Improve debug outputs of couples and increase maximum distanceorwell962017-03-03
* Only get on by walking in when there's a platform, improve get off handlingorwell962017-02-28
* Add passive component namingorwell962017-02-28
* Add ceiling-mounted signalorwell962017-02-28
* Fix collision issuesorwell962017-02-21
lass="hl ppc">#define LUA_ENVIRONINDEX (-10001) #define LUA_GLOBALSINDEX (-10002) #define lua_upvalueindex(i) (LUA_GLOBALSINDEX-(i)) /* thread status; 0 is OK */ #define LUA_YIELD 1 #define LUA_ERRRUN 2 #define LUA_ERRSYNTAX 3 #define LUA_ERRMEM 4 #define LUA_ERRERR 5 typedef struct lua_State lua_State; typedef int (*lua_CFunction) (lua_State *L); /* ** functions that read/write blocks when loading/dumping Lua chunks */ typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz); typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz, void* ud); /* ** prototype for memory-allocation functions */ typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); /* ** basic types */ #define LUA_TNONE (-1) #define LUA_TNIL 0 #define LUA_TBOOLEAN 1 #define LUA_TLIGHTUSERDATA 2 #define LUA_TNUMBER 3 #define LUA_TSTRING 4 #define LUA_TTABLE 5 #define LUA_TFUNCTION 6 #define LUA_TUSERDATA 7 #define LUA_TTHREAD 8 /* minimum Lua stack available to a C function */ #define LUA_MINSTACK 20 /* ** generic extra include file */ #if defined(LUA_USER_H) #include LUA_USER_H #endif /* type of numbers in Lua */ typedef LUA_NUMBER lua_Number; /* type for integer functions */ typedef LUA_INTEGER lua_Integer; /* ** state manipulation */ LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); LUA_API void (lua_close) (lua_State *L); LUA_API lua_State *(lua_newthread) (lua_State *L); LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); /* ** basic stack manipulation */ LUA_API int (lua_gettop) (lua_State *L); LUA_API void (lua_settop) (lua_State *L, int idx); LUA_API void (lua_pushvalue) (lua_State *L, int idx); LUA_API void (lua_remove) (lua_State *L, int idx); LUA_API void (lua_insert) (lua_State *L, int idx); LUA_API void (lua_replace) (lua_State *L, int idx); LUA_API int (lua_checkstack) (lua_State *L, int sz); LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n); /* ** access functions (stack -> C) */ LUA_API int (lua_isnumber) (lua_State *L, int idx); LUA_API int (lua_isstring) (lua_State *L, int idx); LUA_API int (lua_iscfunction) (lua_State *L, int idx); LUA_API int (lua_isuserdata) (lua_State *L, int idx); LUA_API int (lua_type) (lua_State *L, int idx); LUA_API const char *(lua_typename) (lua_State *L, int tp); LUA_API int (lua_equal) (lua_State *L, int idx1, int idx2); LUA_API int (lua_rawequal) (lua_State *L, int idx1, int idx2); LUA_API int (lua_lessthan) (lua_State *L, int idx1, int idx2); LUA_API lua_Number (lua_tonumber) (lua_State *L, int idx); LUA_API lua_Integer (lua_tointeger) (lua_State *L, int idx); LUA_API int (lua_toboolean) (lua_State *L, int idx); LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); LUA_API size_t (lua_objlen) (lua_State *L, int idx); LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx); LUA_API void *(lua_touserdata) (lua_State *L, int idx); LUA_API lua_State *(lua_tothread) (lua_State *L, int idx); LUA_API const void *(lua_topointer) (lua_State *L, int idx); /* ** push functions (C -> stack) */ LUA_API void (lua_pushnil) (lua_State *L); LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n); LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n); LUA_API void (lua_pushlstring) (lua_State *L, const char *s, size_t l); LUA_API void (lua_pushstring) (lua_State *L, const char *s); LUA_API const char *(lua_pushvfstring) (lua_State *L, const char *fmt, va_list argp); LUA_API const char *(lua_pushfstring) (lua_State *L, const char *fmt, ...); LUA_API void (lua_pushcclosure) (lua_State *L, lua_CFunction fn, int n); LUA_API void (lua_pushboolean) (lua_State *L, int b); LUA_API void (lua_pushlightuserdata) (lua_State *L, void *p); LUA_API int (lua_pushthread) (lua_State *L); /* ** get functions (Lua -> stack) */ LUA_API void (lua_gettable) (lua_State *L, int idx); LUA_API void (lua_getfield) (lua_State *L, int idx, const char *k); LUA_API void (lua_rawget) (lua_State *L, int idx); LUA_API void (lua_rawgeti) (lua_State *L, int idx, int n); LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec); LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz); LUA_API int (lua_getmetatable) (lua_State *L, int objindex); LUA_API void (lua_getfenv) (lua_State *L, int idx); /* ** set functions (stack -> Lua) */ LUA_API void (lua_settable) (lua_State *L, int idx); LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k); LUA_API void (lua_rawset) (lua_State *L, int idx); LUA_API void (lua_rawseti) (lua_State *L, int idx, int n); LUA_API int (lua_setmetatable) (lua_State *L, int objindex); LUA_API int (lua_setfenv) (lua_State *L, int idx); /* ** `load' and `call' functions (load and run Lua code) */ LUA_API void (lua_call) (lua_State *L, int nargs, int nresults); LUA_API int (lua_pcall) (lua_State *L, int nargs, int nresults, int errfunc); LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud); LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, const char *chunkname); LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data); /* ** coroutine functions */ LUA_API int (lua_yield) (lua_State *L, int nresults);