[Game] Inside The Box [insidethebox]

[Game] Inside The Box [insidethebox]

Postby sofar » Sun Oct 28, 2018 6:32 am

It's been a long time coming, but, as of now, Inside The Box is Open Source!

All documentation is kept in the github project. This thread is a place to discuss the game code, not to discuss the server. For that purpose, please visit The ITB Server Thread instead.

For credits, please visit the official server. Many, many, many thanks to Nore for making this. I've taken too long to finish open sourcing this.

Image

Want more screenshots? Visit: https://minetest.foo-projects.org/gallery.html

Description: puzzle game. Create and share puzzle boxes (mazes) with other players.
Authors: sofar, Nore.
License: LGPLv2.1+ for code, CC-BY-SA-4.0 for media, other derivative media present with CC0/CC-BY/CC-BY-SA licensed items.

Download
... Browse the code

Requirements



- minetest 0.4.16. 0.4.17 and 0.4.17.1 are untested atm
- lsqlite3

Network and disk space requirements of this game are minimal. The Official ITB server uses a map that is ~300MB and total disk space usage is under 1gb.

You may need to additionally deploy modules to maintain and operate the server. These are not maintained as part of the ITB tree and are maintained elsewhere.
sofar
Developer
 
Posts: 2042
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: [Game]Inside The Box[insidethebox]

Postby texmex » Sun Oct 28, 2018 9:37 am

That is great! Personally, I’ll have a lot of fun learning from this code.
texmex
Member
 
Posts: 1284
Joined: Mon Jul 11, 2016 9:08 pm
GitHub: tacotexmex
In-game: texmex

Sorry that I'm the one that ruins it, but …

Postby Wuzzy » Sun Oct 28, 2018 1:56 pm

Aaaaand it crashed:
Code: Select all
2018-10-28 14:45:36: ERROR[Main]: ModError: Failed to load and run script from ~/.minetest/games/Inside The Box/mods/db/init.lua:
2018-10-28 14:45:36: ERROR[Main]: ~/.minetest/games/Inside The Box/mods/db/init.lua:59: attempt to index local 'insecure_env' (a nil value)
2018-10-28 14:45:36: ERROR[Main]: stack traceback:
2018-10-28 14:45:36: ERROR[Main]:    ~/.minetest/games/Inside The Box/mods/db/init.lua:59: in main chunk


It crashes right on start.
Both in 0.4.17.1 and 0.5.0-dev (b6adb7f09e4375f145c3ddb592527c1dd0b026a2).
It does not matter if I start as singleplayer or as server. It does not matter if I delete and re-create the world.

lsqlite version: lua-lsqlite3 0.9.4
ITB version: af3f8c1b

PS: Your thread should comply to the guidelines like everyone else does. Thanks. :P
Wuzzy
Member
 
Posts: 3423
Joined: Mon Sep 24, 2012 3:01 pm
GitHub: Wuzzy2
In-game: Wuzzy

Re: Sorry that I'm the one that ruins it, but …

Postby rubenwardy » Sun Oct 28, 2018 5:52 pm

Wuzzy wrote:Aaaaand it crashed:
Code: Select all
2018-10-28 14:45:36: ERROR[Main]: ModError: Failed to load and run script from ~/.minetest/games/Inside The Box/mods/db/init.lua:
2018-10-28 14:45:36: ERROR[Main]: ~/.minetest/games/Inside The Box/mods/db/init.lua:59: attempt to index local 'insecure_env' (a nil value)
2018-10-28 14:45:36: ERROR[Main]: stack traceback:
2018-10-28 14:45:36: ERROR[Main]:    ~/.minetest/games/Inside The Box/mods/db/init.lua:59: in main chunk


It crashes right on start.
Both in 0.4.17.1 and 0.5.0-dev (b6adb7f09e4375f145c3ddb592527c1dd0b026a2).
It does not matter if I start as singleplayer or as server. It does not matter if I delete and re-create the world.


you need to add `db` to secure.trusted_mods
rubenwardy
Moderator
 
Posts: 5717
Joined: Tue Jun 12, 2012 6:11 pm
GitHub: rubenwardy
In-game: rubenwardy

Re: Sorry that I'm the one that ruins it, but …

Postby sofar » Sun Oct 28, 2018 6:34 pm

Wuzzy wrote: Your thread should comply to the guidelines like everyone else does. Thanks. :P


I'll fix this up later today, thanks
sofar
Developer
 
Posts: 2042
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: Sorry that I'm the one that ruins it, but …

Postby sofar » Sun Oct 28, 2018 6:41 pm

rubenwardy wrote:you need to add `db` to secure.trusted_mods


I've added some assert()s to hopefully better explain this here, instead of a cryptic lua stack trace.
sofar
Developer
 
Posts: 2042
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: [Game] Inside The Box [insidethebox]

Postby Peppy » Sun Oct 28, 2018 9:59 pm

This is a huge amount of work, thanks a lot for making it OSS !
I really hope that people will contribute and make this game even better.

(btw : hopefully, i'll finish my curent box on ITB server, a promise is a promise)
Peppy
Member
 
Posts: 32
Joined: Sun Nov 06, 2016 7:34 am
In-game: Peppy

Re: [Game] Inside The Box [insidethebox]

Postby Wuzzy » Mon Oct 29, 2018 12:14 am

Do I need a special version of lsqlite3?

Because that alone doesn't work:
2018-10-29 01:12:28: ERROR[Main]: ModError: Failed to load and run script from ~/.minetest/games/Inside The Box/mods/db/init.lua:
2018-10-29 01:12:28: ERROR[Main]: ~/.minetest/games/Inside The Box/mods/db/init.lua:60: module 'lsqlite3' not found:
2018-10-29 01:12:28: ERROR[Main]: no field package.preload['lsqlite3']
2018-10-29 01:12:28: ERROR[Main]: no file './lsqlite3.lua'
2018-10-29 01:12:28: ERROR[Main]: no file '/usr/share/luajit-2.0.5/lsqlite3.lua'
2018-10-29 01:12:28: ERROR[Main]: no file '/usr/local/share/lua/5.1/lsqlite3.lua'
2018-10-29 01:12:28: ERROR[Main]: no file '/usr/local/share/lua/5.1/lsqlite3/init.lua'
2018-10-29 01:12:28: ERROR[Main]: no file '/usr/share/lua/5.1/lsqlite3.lua'
2018-10-29 01:12:28: ERROR[Main]: no file '/usr/share/lua/5.1/lsqlite3/init.lua'
2018-10-29 01:12:28: ERROR[Main]: no file './lsqlite3.so'
2018-10-29 01:12:28: ERROR[Main]: no file '/usr/local/lib/lua/5.1/lsqlite3.so'
2018-10-29 01:12:28: ERROR[Main]: no file '/usr/lib/lua/5.1/lsqlite3.so'
2018-10-29 01:12:28: ERROR[Main]: no file '/usr/local/lib/lua/5.1/loadall.so'
2018-10-29 01:12:28: ERROR[Main]: stack traceback:
2018-10-29 01:12:28: ERROR[Main]: [C]: in function 'require'
2018-10-29 01:12:28: ERROR[Main]: ~/.minetest/games/Inside The Box/mods/db/init.lua:60: in main chunk
Wuzzy
Member
 
Posts: 3423
Joined: Mon Sep 24, 2012 3:01 pm
GitHub: Wuzzy2
In-game: Wuzzy

Re: [Game] Inside The Box [insidethebox]

Postby sofar » Mon Oct 29, 2018 2:12 am

Wuzzy wrote:Do I need a special version of lsqlite3?


Check that your `lsqlite3.so` file (I'm assuming you use linux) is in the listed paths above. If it isn't, minetest will likely not find it. From the error message above, it looks like it simply can't be found.
sofar
Developer
 
Posts: 2042
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: [Game] Inside The Box [insidethebox]

Postby Christian_Soldier » Mon Oct 29, 2018 10:18 am

I can't wait to try this! I have a few ideas I want to try out. :)
Christian_Soldier
Member
 
Posts: 155
Joined: Thu Feb 08, 2018 5:36 pm
In-game: Christian_Soldier

Re: [Game] Inside The Box [insidethebox]

Postby Wuzzy » Mon Oct 29, 2018 11:47 am

I just copied lsqlite3.so to the working directory of Minetest, but that didn't help either:

2018-10-29 12:42:15: ERROR[Main]: ModError: Failed to load and run script from ~/.minetest/games/Inside The Box/mods/db/init.lua:
2018-10-29 12:42:15: ERROR[Main]: error loading module 'lsqlite3' from file './lsqlite3.so':
2018-10-29 12:42:15: ERROR[Main]: ./lsqlite3.so: undefined symbol: luaL_setfuncs
2018-10-29 12:42:15: ERROR[Main]: stack traceback:
2018-10-29 12:42:15: ERROR[Main]: [C]: at 0x7fb9f38b28b0
2018-10-29 12:42:15: ERROR[Main]: [C]: in function 'require'
2018-10-29 12:42:15: ERROR[Main]: ~/.minetest/games/Inside The Box/mods/db/init.lua:60: in main chunk


I use lua-lsqlite3 0.9.4-2 from Arch Linux. What is your version?
Wuzzy
Member
 
Posts: 3423
Joined: Mon Sep 24, 2012 3:01 pm
GitHub: Wuzzy2
In-game: Wuzzy

Re: [Game] Inside The Box [insidethebox]

Postby sofar » Mon Oct 29, 2018 5:29 pm

Wuzzy wrote:I use lua-lsqlite3 0.9.4-2 from Arch Linux. What is your version?


I used luarocks to build/install mine. Note that if you're building minetest with luajit, or the non luajit version, you probably want to manually build it, because MT embeds lua and it may not know anything about how or where arch builds lua, since that's separate. From your error message, it may just be that you've got a version built for lua 5.3, but MT uses 5.1, and they are not compatible.

maybe make a separate thread for this problem? Others will appreciate that most likely, there are quite a few mods that depend on lslqite3.
sofar
Developer
 
Posts: 2042
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: [Game] Inside The Box [insidethebox]

Postby TumeniNodes » Tue Oct 30, 2018 4:00 pm

lsqlite3 is installed ( I used luarocks)
I get the same on 5.0, what am I missing?

Code: Select all
2018-10-30 11:58:32: ERROR[Main]: mod "boxes" has unsatisfied dependencies:  "music"
2018-10-30 11:58:32: ERROR[Main]: mod "creative" has unsatisfied dependencies:  "boxes"
2018-10-30 11:58:32: ERROR[Main]: mod "doors" has unsatisfied dependencies:  "mech"
2018-10-30 11:58:32: ERROR[Main]: mod "inspector" has unsatisfied dependencies:  "boxes"
2018-10-30 11:58:32: ERROR[Main]: mod "irc_whereis" has unsatisfied dependencies:  "boxes"
2018-10-30 11:58:32: ERROR[Main]: mod "mech" has unsatisfied dependencies:  "boxes"
2018-10-30 11:58:32: ERROR[Main]: mod "menu" has unsatisfied dependencies:  "boxes" "music"
2018-10-30 11:58:32: ERROR[Main]: mod "music" has unsatisfied dependencies:  "localmusic"
2018-10-30 11:58:32: ERROR[Main]: mod "nodes" has unsatisfied dependencies:  "mech"
2018-10-30 11:58:32: ERROR[Main]: mod "player" has unsatisfied dependencies:  "menu"
2018-10-30 11:58:32: ERROR[Main]: mod "signs" has unsatisfied dependencies:  "boxes"
2018-10-30 11:58:32: ERROR[Main]: mod "terminal" has unsatisfied dependencies:  "mech"
2018-10-30 11:58:32: ERROR[Main]: mod "tools" has unsatisfied dependencies:  "nodes"
2018-10-30 11:58:32: ERROR[Main]: mod "xpanes" has unsatisfied dependencies:  "nodes"
2018-10-30 11:58:32: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2018-10-30 11:58:32: ACTION[Main]:          _|_|_|                      _|        _|
2018-10-30 11:58:32: ACTION[Main]:            _|    _|_|_|      _|_|_|        _|_|_|    _|_|
2018-10-30 11:58:32: ACTION[Main]:            _|    _|    _|  _|_|      _|  _|    _|  _|_|_|_|
2018-10-30 11:58:32: ACTION[Main]:            _|    _|    _|      _|_|  _|  _|    _|  _|
2018-10-30 11:58:32: ACTION[Main]:          _|_|_|  _|    _|  _|_|_|    _|    _|_|_|    _|_|_|
2018-10-30 11:58:32: ACTION[Main]:
2018-10-30 11:58:32: ACTION[Main]:    _|      _|                          _|
2018-10-30 11:58:32: ACTION[Main]:  _|_|_|_|  _|_|_|      _|_|            _|_|_|      _|_|    _|    _|
2018-10-30 11:58:32: ACTION[Main]:    _|      _|    _|  _|_|_|_|          _|    _|  _|    _|    _|_|
2018-10-30 11:58:32: ACTION[Main]:    _|      _|    _|  _|                _|    _|  _|    _|  _|    _|
2018-10-30 11:58:32: ACTION[Main]:      _|_|  _|    _|    _|_|_|          _|_|_|      _|_|    _|    _|
2018-10-30 11:58:33: ERROR[Main]: NodeResolver: failed to resolve node name 'mapgen_stone'.
2018-10-30 11:58:33: ERROR[Main]: NodeResolver: failed to resolve node name 'mapgen_stone'.
2018-10-30 11:58:33: ERROR[Main]: NodeResolver: failed to resolve node name 'mapgen_stone'.
2018-10-30 11:58:33: ERROR[Main]: NodeResolver: failed to resolve node name 'mapgen_water_source'.
2018-10-30 11:58:33: ERROR[Main]: NodeResolver: failed to resolve node name 'mapgen_water_source'.
2018-10-30 11:58:33: ERROR[Main]: NodeResolver: failed to resolve node name 'mapgen_river_water_source'.
2018-10-30 11:58:33: ERROR[Main]: NodeResolver: failed to resolve node name 'mapgen_stone'.
2018-10-30 11:58:33: ACTION[Main]:         .__               __                   __   
2018-10-30 11:58:33: ACTION[Main]:   _____ |__| ____   _____/  |_  ____   _______/  |_
2018-10-30 11:58:33: ACTION[Main]:  /     \|  |/    \_/ __ \%POST_CONTENT%nbsp;  __\/ __ \ /  ___/\%POST_CONTENT%nbsp;  __\
2018-10-30 11:58:33: ACTION[Main]: |  Y Y  \%POST_CONTENT%nbsp; |   |  \%POST_CONTENT%nbsp; ___/|  | \%POST_CONTENT%nbsp; ___/ \___ \%POST_CONTENT%nbsp; |  | 
2018-10-30 11:58:33: ACTION[Main]: |__|_|  /__|___|  /\___  >__|  \___  >____  > |__| 
2018-10-30 11:58:33: ACTION[Main]:       \/        \/     \/          \/     \/       
2018-10-30 11:58:33: ACTION[Main]: World at [/home/paul/Minetest 04.16/recipe/bin/../worlds/first ITB world 30 10 2018]
2018-10-30 11:58:33: ACTION[Main]: Server for gameid="insidethebox" listening on 0.0.0.0:52056.
2018-10-30 11:58:35: ERROR[Main]: generateImage(): Could not load image "itb_blank.png" while building texture; Creating a dummy image
2018-10-30 11:58:35: ACTION[Server]: singleplayer [127.0.0.1] joins game.
2018-10-30 11:58:35: ACTION[Server]: singleplayer joins game. List of players: singleplayer
2018-10-30 11:58:35: ERROR[Main]: generateImage(): Could not load image "crack_anylength.png" while building texture; Creating a dummy image
2018-10-30 11:58:35: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'sfinv' in callback environment_Step(): ...4.16/recipe/bin/../games/insidethebox/mods/sfinv/api.lua:129: [sfinv] Invalid homepage
2018-10-30 11:58:35: ERROR[Main]: stack traceback:
2018-10-30 11:58:35: ERROR[Main]:    [C]: in function 'assert'
2018-10-30 11:58:35: ERROR[Main]:    ...4.16/recipe/bin/../games/insidethebox/mods/sfinv/api.lua:129: in function 'get_formspec'
2018-10-30 11:58:35: ERROR[Main]:    ...4.16/recipe/bin/../games/insidethebox/mods/sfinv/api.lua:152: in function 'set_player_inventory_formspec'
2018-10-30 11:58:35: ERROR[Main]:    ...4.16/recipe/bin/../games/insidethebox/mods/sfinv/api.lua:174: in function 'func'
2018-10-30 11:58:35: ERROR[Main]:    ...ul/Minetest 04.16/recipe/bin/../builtin/common/after.lua:18: in function <...ul/Minetest 04.16/recipe/bin/../builtin/common/after.lua:4>
2018-10-30 11:58:35: ERROR[Main]:    ...l/Minetest 04.16/recipe/bin/../builtin/game/register.lua:412: in function <...l/Minetest 04.16/recipe/bin/../builtin/game/register.lua:392>
2018-10-30 11:58:35: ERROR[Main]: stack traceback:
2018-10-30 11:58:35: ACTION[Server]: singleplayer leaves game. List of players:
TumeniNodes
Member
 
Posts: 2626
Joined: Fri Feb 26, 2016 7:49 pm
GitHub: TumeniNodes
In-game: TumeniNodes

Re: [Game] Inside The Box [insidethebox]

Postby Peppy » Tue Oct 30, 2018 7:33 pm

I had the same issue with mods not loading.

I had to copy the localmusic folder from the music mod to a worldmods folder in the world directory.

This fixed the issue in 0.4.17.1 :)
Peppy
Member
 
Posts: 32
Joined: Sun Nov 06, 2016 7:34 am
In-game: Peppy

Re: [Game] Inside The Box [insidethebox]

Postby sofar » Tue Oct 30, 2018 8:23 pm

Peppy wrote:I had the same issue with mods not loading.

I had to copy the localmusic folder from the music mod to a worldmods folder in the world directory.

This fixed the issue in 0.4.17.1 :)


I'll add an `assert` for that as well. Yes, this is required. It helps to keep music tracks out of git and allows the server operator to have custom per-server music.
sofar
Developer
 
Posts: 2042
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: [Game] Inside The Box [insidethebox]

Postby sofar » Tue Oct 30, 2018 8:27 pm

sofar wrote:I'll add an `assert` for that as well. Yes, this is required. It helps to keep music tracks out of git and allows the server operator to have custom per-server music.


euh, the assert is already in place and should show a clear message.

Maybe Tumeninodes cut off the most important error message from his logs? :P
sofar
Developer
 
Posts: 2042
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: [Game] Inside The Box [insidethebox]

Postby TumeniNodes » Tue Oct 30, 2018 8:44 pm

I cut off the what, at the what what?

Peppy wrote:I had the same issue with mods not loading.

I had to copy the localmusic folder from the music mod to a worldmods folder in the world directory.

This fixed the issue in 0.4.17.1 :)



I did manage to overlook this...
All is well now
Fixes for 5.0 as well... I'm going in
TumeniNodes
Member
 
Posts: 2626
Joined: Fri Feb 26, 2016 7:49 pm
GitHub: TumeniNodes
In-game: TumeniNodes

Re: [Game] Inside The Box [insidethebox]

Postby Fixer » Tue Oct 30, 2018 10:02 pm

Thank you!
Fixer
Member
 
Posts: 887
Joined: Sun Jul 31, 2011 11:23 am
In-game: Fixer

Re: [Game] Inside The Box [insidethebox]

Postby Wuzzy » Wed Apr 10, 2019 2:56 am

Did anyone ever manage to make this game run?
If yes, what are the steps you took?

BTW: Please add an icon and a title image for the Minetest main menu. It looks unfinished without them.
Wuzzy
Member
 
Posts: 3423
Joined: Mon Sep 24, 2012 3:01 pm
GitHub: Wuzzy2
In-game: Wuzzy

Re: [Game] Inside The Box [insidethebox]

Postby sofar » Wed Apr 10, 2019 3:54 am

Wuzzy wrote:Did anyone ever manage to make this game run?
If yes, what are the steps you took?

BTW: Please add an icon and a title image for the Minetest main menu. It looks unfinished without them.


I probably won't. This game isn't meant to casually run from the GUI anyway. If people send a patch, I'll add it though.

Installation instructions are here:

https://gitlab.com/sofar/insidethebox/b ... -this-game

They may be slightly abbreviated, but they're still correct I believe. If anything is unclear or doesn't work, let me know or send a patch to fix it.
sofar
Developer
 
Posts: 2042
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: [Game] Inside The Box [insidethebox]

Postby Wuzzy » Wed Apr 10, 2019 12:45 pm

Installing ITB is a complete nightmare! It really is.

Now I installed LuaRocks and lsqlite3 with it, only to figure out it didn't work. No, installing just LuaRocks would have been too easy! No, I had to install legacy version LuaRocks 5.1 by manually compiling it and installing lsqlite3 again. Sigh.

Then created 2 empty folders ranks and localmusic into ~/.minetest/mods and put in an empty init.lua in each of them.

Then I added db to trustedmods (btw: Does this mean I am now at risk when a malicious game author creates a game which contains a mod with the same name? How do I restrict trustedmods to one game only?).

Then I tried to start ITB again, only to be greeted with a new insta-crash:

2019-04-10 14:32:04: ERROR[Main]: mod "boxes" has unsatisfied dependencies: "music"
2019-04-10 14:32:04: ERROR[Main]: mod "creative" has unsatisfied dependencies: "boxes"
2019-04-10 14:32:04: ERROR[Main]: mod "doors" has unsatisfied dependencies: "mech"
2019-04-10 14:32:04: ERROR[Main]: mod "inspector" has unsatisfied dependencies: "boxes"
2019-04-10 14:32:04: ERROR[Main]: mod "irc_whereis" has unsatisfied dependencies: "boxes"
2019-04-10 14:32:04: ERROR[Main]: mod "mech" has unsatisfied dependencies: "boxes"
2019-04-10 14:32:04: ERROR[Main]: mod "menu" has unsatisfied dependencies: "boxes" "music"
2019-04-10 14:32:04: ERROR[Main]: mod "music" has unsatisfied dependencies: "localmusic"
2019-04-10 14:32:04: ERROR[Main]: mod "nodes" has unsatisfied dependencies: "mech"
2019-04-10 14:32:04: ERROR[Main]: mod "player" has unsatisfied dependencies: "menu"
2019-04-10 14:32:04: ERROR[Main]: mod "signs" has unsatisfied dependencies: "boxes"
2019-04-10 14:32:04: ERROR[Main]: mod "terminal" has unsatisfied dependencies: "mech"
2019-04-10 14:32:04: ERROR[Main]: mod "tools" has unsatisfied dependencies: "nodes"
2019-04-10 14:32:04: ERROR[Main]: mod "xpanes" has unsatisfied dependencies: "nodes"
2019-04-10 14:32:04: ACTION[Main]: _|_|_| _| _|
2019-04-10 14:32:04: ACTION[Main]: _| _|_|_| _|_|_| _|_|_| _|_|
2019-04-10 14:32:04: ACTION[Main]: _| _| _| _|_| _| _| _| _|_|_|_|
2019-04-10 14:32:04: ACTION[Main]: _| _| _| _|_| _| _| _| _|
2019-04-10 14:32:04: ACTION[Main]: _|_|_| _| _| _|_|_| _| _|_|_| _|_|_|
2019-04-10 14:32:04: ACTION[Main]:
2019-04-10 14:32:04: ACTION[Main]: _| _| _|
2019-04-10 14:32:04: ACTION[Main]: _|_|_|_| _|_|_| _|_| _|_|_| _|_| _| _|
2019-04-10 14:32:04: ACTION[Main]: _| _| _| _|_|_|_| _| _| _| _| _|_|
2019-04-10 14:32:04: ACTION[Main]: _| _| _| _| _| _| _| _| _| _|
2019-04-10 14:32:04: ACTION[Main]: _|_| _| _| _|_|_| _|_|_| _|_| _| _|
2019-04-10 14:32:04: WARNING[Main]: Undeclared global variable "irc" accessed at ~/.minetest/games/insidethebox/mods/irc_queue/init.lua:30
.__ __ __
_____ |__| ____ _____/ |_ ____ _______/ |_
/ \| |/ \_/ __ \ __\/ __ \ / ___/\ __\
| Y Y \ | | \ ___/| | \ ___/ \___ \ | |
|__|_| /__|___| /\___ >__| \___ >____ > |__|
\/ \/ \/ \/ \/
2019-04-10 14:32:04: ACTION[Main]: World at [~/.minetest/worlds/test]
2019-04-10 14:32:04: ACTION[Main]: Server for gameid="insidethebox" listening on 0.0.0.0:64026.
2019-04-10 14:32:06: ERROR[Main]: generateImage(): Could not load image "itb_blank.png" while building texture; Creating a dummy image
2019-04-10 14:32:06: ACTION[Server]: singleplayer [127.0.0.1] joins game.
2019-04-10 14:32:06: ACTION[Server]: singleplayer joins game. List of players: singleplayer
2019-04-10 14:32:06: ERROR[Main]: generateImage(): Could not load image "crack_anylength.png" while building texture; Creating a dummy image
2019-04-10 14:32:06: WARNING[Main]: Client side scripting is disabled by client.
2019-04-10 14:32:06: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'sfinv' in callback on_joinplayer(): ~/.minetest/games/insidethebox/mods/sfinv/api.lua:129: [sfinv] Invalid homepage
2019-04-10 14:32:06: ERROR[Main]: stack traceback:
2019-04-10 14:32:06: ERROR[Main]: [C]: in function 'assert'
2019-04-10 14:32:06: ERROR[Main]: ~/.minetest/games/insidethebox/mods/sfinv/api.lua:129: in function 'get_formspec'
2019-04-10 14:32:06: ERROR[Main]: ~/.minetest/games/insidethebox/mods/sfinv/api.lua:152: in function 'set_player_inventory_formspec'
2019-04-10 14:32:06: ERROR[Main]: ~/.minetest/games/insidethebox/mods/sfinv/api.lua:173: in function <~/.minetest/games/insidethebox/mods/sfinv/api.lua:171>
2019-04-10 14:32:06: ERROR[Main]: ~/src/minetest/5.0.1/bin/../builtin/game/register.lua:419: in function <~/src/minetest/5.0.1/bin/../builtin/game/register.lua:399>
2019-04-10 14:32:06: ACTION[Server]: singleplayer leaves game. List of players:
2019-04-10 14:32:06: ACTION[Main]: Server: Shutting down


EDIT: I added a few simple menu images for ITB in the attachment. I originally intended to use the Nexus cube as icon, but I failed (it looked horrible).
Wuzzy
Member
 
Posts: 3423
Joined: Mon Sep 24, 2012 3:01 pm
GitHub: Wuzzy2
In-game: Wuzzy

Re: [Game] Inside The Box [insidethebox]

Postby sofar » Wed Apr 10, 2019 3:40 pm

Then created 2 empty folders ranks and localmusic into ~/.minetest/mods and put in an empty init.lua in each of them.


This is incorrect:

- You shouldn't create a `ranks` worldmod at all (it is clearly marked optional), although it likely isn't fatal.
- You should copy the template `localmusic` mod instead of creating an empty init.lua mod.

This is is *literally* written like that in the instructions in the README.md.

https://gitlab.com/sofar/insidethebox#running-this-game
sofar
Developer
 
Posts: 2042
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: [Game] Inside The Box [insidethebox]

Postby sofar » Wed Apr 10, 2019 3:42 pm

Now I installed LuaRocks and lsqlite3 with it, only to figure out it didn't work. No, installing just LuaRocks would have been too easy! No, I had to install legacy version LuaRocks 5.1 by manually compiling it and installing lsqlite3 again. Sigh.


Unfortunately, I can't really make this better - every distribution has different tooling around luarocks and sadly lua 5.1 is mostly obsolete and distributions have mostly switched to 5.2 or even 5.3, so this will remain a pain point unless we merge lsqlite3 support into MT itself, which by itself is unlikely as well.
sofar
Developer
 
Posts: 2042
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: [Game] Inside The Box [insidethebox]

Postby sofar » Wed Apr 10, 2019 3:45 pm

Wuzzy wrote:Then I added db to trustedmods (btw: Does this mean I am now at risk when a malicious game author creates a game which contains a mod with the same name? How do I restrict trustedmods to one game only?).


This is an engine issue and I have very strong negative opinions about it. It really should be a per-world setting but MT doesn't know anything like it. In my personal setups, I always use `--config` to restrict each MT server to a separate set of configs so that server settings are per-server and not global.
sofar
Developer
 
Posts: 2042
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar

Re: [Game] Inside The Box [insidethebox]

Postby sofar » Wed Apr 10, 2019 3:48 pm

Wuzzy wrote:EDIT: I added a few simple menu images for ITB in the attachment. I originally intended to use the Nexus cube as icon, but I failed (it looked horrible).


These are great, actually. I assume you're OK contributing them under the original License (CC-BY-4.0)?
sofar
Developer
 
Posts: 2042
Joined: Fri Jan 16, 2015 7:31 am
GitHub: sofar
In-game: sofar



Return to Game Releases



Who is online

Users browsing this forum: Bing Bot [Bot] and 0 guests