9556 Commits

Author SHA1 Message Date
Schmappie Eldress
a4187aa951 lua client API: Fix crash in get_server_info()
When running on a local machine in Docker, calling
`minetest.get_server_info()` in lua can throw an exception, resulting
in client shutdown.

    ERROR[Main]: ModError: Failed to load and run mod "tchat":
    ERROR[Main]: No address for peer found!
    ERROR[Main]: stack traceback:
    ERROR[Main]: 	[C]: in function 'get_server_info'
    ERROR[Main]: 	tchat:init.lua:118: in main chunk
    ERROR[Main]: Check debug.txt for details.
2021-08-20 01:14:35 -05:00
Schmappie Eldress
1c1eac07f3 Fix crash in autofly mod
From clean `~/.minetest` directory:
- Start waspsaliva
- Create a waypoint ".wah"
- Cheat menu -> autofly -> waypoints
- Click the new waypoint
- Click SHOW button

2021-08-19 22:24:46: ERROR[Main]: ModError: Runtime error from mod 'autoeat' in callback on_formspec_input(): *builtin*:common/vector.lua:67: attempt to index local 'pos2' (a nil value)
2021-08-19 22:24:46: ERROR[Main]: stack traceback:
2021-08-19 22:24:46: ERROR[Main]: 	*builtin*:common/vector.lua:67: in function 'direction'
2021-08-19 22:24:46: ERROR[Main]: 	*builtin*:client/wasplib.lua:503: in function 'aim'
2021-08-19 22:24:46: ERROR[Main]: 	autofly:init.lua:301: in function 'display_waypoint'
2021-08-19 22:24:46: ERROR[Main]: 	autofly:/wpforms.lua:102: in function <autofly:/wpforms.lua:77>
2021-08-19 22:24:46: ERROR[Main]: 	*builtin*:client/register.lua:26: in function <*builtin*:client/register.lua:14>
2021-08-19 22:24:46: ERROR[Main]: Check debug.txt for details.
2021-08-19 17:40:41 -05:00
Schmappie Eldress
f7c543bc1b Silence "register same mod storage twice" error
2021-08-19 22:15:43: ERROR[Main]: Unable to register same mod storage twice. Storage name: autofly
2021-08-19 17:40:41 -05:00
Schmappie Eldress
76db810cca Silence various undeclared variable warnings
scaffold:

    2021-08-18 22:42:54: WARNING[Main]: Assignment to undeclared global "sdir" inside a function at scaffold:/railscaffold.lua:151.

incrementaltp:  Fix this by adding `optional_depends` to `mod.conf`

2021-08-18 22:52:39: WARNING[Main]: Undeclared global variable "autofly" accessed at incrementaltp:init.lua:85
2021-08-18 22:52:39: WARNING[Main]: Undeclared global variable "autofly" accessed at incrementaltp:init.lua:87

dte:

2021-08-18 22:59:26: WARNING[Main]: Assignment to undeclared global "_" inside a function at dte:init.lua:375.

tchat:  Use `get_modpath('wisp')` to fix this

2021-08-18 23:21:20: WARNING[Main]: Undeclared global variable "wisp" accessed at tchat:init.lua:537
2021-08-19 17:40:41 -05:00
Schmappie Eldress
4669d8bc95 clientmods/mods.conf: Silence client announcement by default
Silence the embarrassing announcement:

    <schmappie>: Hey guys. I'm using a hacked client. https://repo.or.cz/waspsaliva.git.

...and the embarrassing followup:

    BOT — Today at 9:10 PM
    Thingamabobber Joined
    <Thingamabobber>: hey, schmapa
    <Thingamabobber>: I saw that youre using waspsaliva.
    <Thingamabobber>: In contents, in the game's main menu, turn off haxnotify to stop the message from showing up.
    <Thingamabobber>: Also, I can tell you the necessary cmake options to hide the fact that you're using a hacked client from other servers.
    <Thingamabobber>: In the waspsaliva directory, there is a file called cmakelists.txt
    <Thingamabobber>: near the top, there are a few options.

    xay — Today at 9:13 PM
    wow its p nice of u to share this stuff :) (with others ;) ) how are you today?
2021-08-19 17:40:41 -05:00
Schmappie Eldress
4059b0909f scaffold CSM: Fix crash from indexing undefined variable
debug.txt:2021-08-18 02:17:31: WARNING[Main]: Undeclared global variable "storage" accessed at scaffold:/railscaffold.lua:151
    debug.txt:2021-08-18 02:17:31: ERROR[Main]: Access denied. Reason: Client environment_step: Runtime error from mod 'scaffold' in callback environment_step(): scaffold:/railscaffold.lua:151: attempt to index global 'storage' (a nil value)
    debug.txt:2021-08-18 02:17:31: ERROR[Main]: 	scaffold:/railscaffold.lua:151: in function 'func'
2021-08-19 17:40:41 -05:00
cora
08213f3c17 nlist: make selected list accessible globally 2021-07-31 11:16:53 +02:00
cora
8193e3bd23 wasplib: add get item meta 2021-07-29 23:40:45 +02:00
cora
52a8195019 esp: fix crash when no list is defined 2021-07-27 22:18:05 +02:00
cora
fbdd177619 wasplib updates 2021-07-27 15:56:32 +02:00
cora
2eeaa61fe4 autofly: add axisnames to dirview 2021-07-19 00:36:34 +02:00
cora
1b8e237ca9 autoaim: fix crash on login 2021-07-15 22:36:04 +02:00
cora
a95e4cccfd wallbot: fix freeze 2021-06-29 11:51:21 +02:00
cora
bf4d991852 clientobject: add null checks 2021-06-19 12:39:18 +02:00
cora
14ed2727e5 optimize: fix noBurning 2021-05-28 15:35:56 +02:00
cora
097c4d93fd kamikaze: rewrite 2021-05-11 12:02:19 +02:00
cora
e419d65cc3 optimize: remove noBurning 2021-05-09 03:24:01 +02:00
cora
03e306f9be fix autoeat 2021-04-11 05:41:19 +02:00
cora
74ef9611ab update wasplib 2021-03-27 22:27:09 +01:00
cora
91cd5d1d01 add missing files 2021-03-27 22:25:11 +01:00
cora
c15c97e0a7 switch_item: better target slot selection 2021-03-03 05:31:47 +01:00
cora
1cdb01a1f9 item wield: auto swap to hotbar 7 for now 2021-03-02 13:23:30 +01:00
cora
f2c9c54489 wasplib: latest 2021-02-24 02:24:36 +01:00
cora
1448e2cbbd railscaff:updates 2021-02-17 14:37:41 +01:00
cora
012d54843e kamikaze stuff 2021-02-15 23:41:56 +01:00
cora
ffafde1a27 kamikaze: added nobanner policy <3<3<3 emi 2021-02-13 04:07:50 +01:00
cora
63710a57c6 kamikaze: cleanup 2021-02-13 04:00:34 +01:00
cora
a9f264c718 remove ad from mod.conf 2021-02-13 03:35:26 +01:00
cora
b03efc3068 cleanup 2021-02-13 03:31:26 +01:00
cora
8f098de232 fix railbot 2021-02-12 05:23:57 +01:00
cora
d7498367f1 wasplib additions 2021-02-12 00:30:21 +01:00
cora
7e55bea18f wasplib: fix bug 2021-02-11 06:12:43 +01:00
cora
bf01906c26 autofly: cleanup 2021-02-11 04:17:51 +01:00
cora
4831502a3b scaffold: use new globalhack system 2021-02-11 03:59:20 +01:00
cora
de7cb7fbf6 actually add wasplib 2021-02-11 03:58:26 +01:00
cora
f7a99978cb add wasplib 2021-02-11 03:32:09 +01:00
cora
3a31ae0d47 lua api: add register_on_item_activate 2021-02-09 21:55:48 +01:00
cora
691ffb4173 autofly: add show local names 2021-02-09 18:20:09 +01:00
cora
accb67c023 autofly: add transport api 2021-02-09 05:54:31 +01:00
cora
334dd2d51b autofly: clean up ui a bit 2021-02-09 01:13:19 +01:00
cora
ce9f7b488c add noPosUpdate 2021-02-07 05:17:21 +01:00
cora
d2bfb5b165 autofly: fix autotp under lag 2021-02-05 01:31:07 +01:00
cora
1265f26d4b scaffold: add constrain 2021-02-02 00:05:20 +01:00
cora
6b4ce490d8 autoeat: fix .interact incompatibility 2021-01-29 12:33:56 +01:00
cora
da5cc43acd optimize:add noparticles 2021-01-26 04:13:43 +01:00
cora
008eacd3ee inctp: add optional end func 2021-01-25 17:10:28 +01:00
cora
3cdd9284d9 autoeat: merge fleckmagic 2021-01-24 03:25:02 +01:00
cron
c8ee822901 bookbot: prepare for local read/write forms 2021-01-22 21:15:32 +00:00
cron
4befb3334f Merge branch 'master' of repo.or.cz:waspsaliva 2021-01-22 21:14:48 +00:00
cora
ab1ece478e scaffold: fix randomscaff 2021-01-22 21:44:27 +01:00