Page 1 of 1

[Misc] Game Wiki [20120912] - website with your world items

PostPosted: Sun Jul 22, 2012 06:55
by cornernote
Game Wiki for Minetest

Extracts all ingame items which can then be viewed on a website.

Documentation | GitHub Project | Demo

Other Demos

About

This module is open source, so it's distributed freely. If you find it useful then I ask not for your wealth, but simply to spare your time to consider the world we share by watching Earthlings, a multi-award winning film available to watch online for free. A must-see for anyone who wishes to make the world a better place.

License

BSD-3-Clause, Copyright © 2014 Brett O'Donnell

PostPosted: Sun Jul 22, 2012 07:36
by LolManKuba
cornernote wrote:In the meantime, you can see the output here:
http://fasthost.com.au/minetest/wiki/

Did you make that wiki? Because we already had a wiki, minetest.com/wiki
but pretty good. And +2 for the mod.

PostPosted: Sun Jul 22, 2012 08:03
by cornernote
this isnt a minetest wiki, its a wiki about your game world (eg, the game with all your mods installed, how to make items in YOUR world, etc)

PostPosted: Sun Jul 22, 2012 09:07
by mauvebic
Would be nice, ive long ago stopped caring about posting the recipes to all my mods lol. (too much crap to remember) lol

PostPosted: Sun Jul 22, 2012 22:15
by severak
Great! I have thinked about this but you were faster:

http://minetest.net/forum/viewtopic.php?pid=33109

Just for curious: how do you read the mod scripts? (If ever)

PostPosted: Mon Jul 23, 2012 04:59
by VanessaE
Excerpt from our IRC chat from this morning, containing various suggestions, per your request :-)

<VanessaE> suggestion: condense the recipe viewer.
<VanessaE> you know how people represent crafts as text?
<VanessaE> ok, for a bucket:
<VanessaE> - - -
<VanessaE> S - S
<VanessaE> - S -
[...]
<cornernote> yeah, can do that pretty easy
<VanessaE> so,
<VanessaE> do something like this:
<cornernote> then u can copy/paste easily
<VanessaE> [Image] [Image] [Image]
<VanessaE> [Image] [Image] [Image]
<VanessaE> [Image] [Image] [Image]
<VanessaE> X X X
<VanessaE> X X X
<VanessaE> X X X
<VanessaE> where the X's are the abbreviated text version
<VanessaE> with a key under them
[...]
<VanessaE> next step is to read each node definition and attempt to actually render cubes from the texture files being referenced.
[...]
<VanessaE> recommendation: collapse all the mods, so a click opens that mod's listings
<VanessaE> that way you don't see four million items from coloredwoods, bobblocks, blox, etc. before getting to the default stuff :-)
<cornernote> yeah, i was going to do that too, but then CRTL+F wont work as well .. also need a "show all" type thing
<VanessaE> good idea

PostPosted: Mon Jul 23, 2012 09:33
by hijera
if you're using SQLite3 , just replace sqlite_escape_string to SQLite3::escapeString in code , and all will work.

PostPosted: Mon Jul 23, 2012 09:57
by cornernote
hijera wrote:if you're using SQLite3 , just replace sqlite_escape_string to SQLite3::escapeString , and all will work.


thanks, will do

PostPosted: Mon Jul 23, 2012 11:36
by Jeija
Really good job! +1

PostPosted: Mon Jul 23, 2012 14:23
by Calinou
Great! :D

PostPosted: Mon Jul 23, 2012 20:38
by severak
Wow! Instalation on 0.4 dev (old one) was a little bit paiful but it's working!

(If you wonder why I used old one - the new ones don't work on my computer)

PostPosted: Thu Jul 26, 2012 08:58
by cornernote
Update - 0.0.3

- more bug fixes and minor tweaks
- rename image/ to textures/
- added imagecubes
- removed huge database
- included default textures and cubes
- remove image harvesting in import.php (too slow)



Also...

If anyone has a better way to get the cube images I would really like to see. My way seems pretty crap - it tends to crash with some mods with Access Violations.

PostPosted: Mon Jul 30, 2012 04:54
by Qaddosh
Where does it dump the wikidata? Would it make a difference if I put the mod in the minetest /usr/share directory rather than the /home/.minetest directory? I can't seem to find where it puts the information.

PostPosted: Mon Jul 30, 2012 04:58
by cornernote
It writes to the same place as your minetest.exe.

Also, please note I had the wrong download links in the first post. I have updated it now.

PostPosted: Mon Jul 30, 2012 04:59
by Qaddosh
Thank you very much.
I appreciate your assistance.

PostPosted: Thu Aug 23, 2012 14:15
by rubenwardy
It uses a php file? if this is made on a persons computer, they will need to install a server...

A bit too complex


EDIT:

I have just realised it is for game server owners, not players.

Very good.

PostPosted: Thu Aug 23, 2012 15:23
by tinoesroho
@rubenwardy:
It's actually quite simple to run; I use XAMPP mini because it's light and easy. But it's best left to big server ops. Just my $0.02.

PostPosted: Thu Aug 23, 2012 15:28
by rubenwardy
tinoesroho wrote:@rubenwardy:
It's actually quite simple to run; I use XAMPP mini because it's light and easy. But it's best left to big server ops. Just my $0.02.


Yes, and i run Apache, i was thought it was for newbies in single player, but it is for server owners to make

PostPosted: Fri Aug 24, 2012 03:10
by cornernote
Newbies in single player will be better off with craft_guide, because it can drop in to your game with no fuss.

If you have a few computer skills you should be able to get yourself a copy of xampp (or another apache/mysql/php stack) running, and in that case this mod will just drop in with almost no code changes.

If you are 1337 then you will want to recompile minetest with the changes I gave, this will give you the inventorycube nodebox images to drop into your wiki.

Personally I plan to use it to help people play the games I release. I thought others may also find it useful to see how to extract game data to use it on a website. As you said, server admins would be the most likely candidate.

PostPosted: Fri Aug 24, 2012 09:23
by rubenwardy
cornernote wrote:Newbies in single player will be better off with craft_guide, because it can drop in to your game with no fuss.

If you have a few computer skills you should be able to get yourself a copy of xampp (or another apache/mysql/php stack) running, and in that case this mod will just drop in with almost no code changes.

If you are 1337 then you will want to recompile minetest with the changes I gave, this will give you the inventorycube nodebox images to drop into your wiki.

Personally I plan to use it to help people play the games I release. I thought others may also find it useful to see how to extract game data to use it on a website. As you said, server admins would be the most likely candidate.


I have a apache/mysql/php stack, You are doing a good job :)

PostPosted: Fri Aug 24, 2012 23:37
by rubenwardy
Can you make a search function? the page is very long

PostPosted: Sat Aug 25, 2012 00:12
by cornernote
Ctrl +f ?

PostPosted: Wed Sep 12, 2012 22:23
by cornernote
big update...

moved all the functions into a class
made the pages a lot shorter
improved craft view with a small view
improved craft with a pasteable view (from VanessaE's suggestion here)
update the wikidata to use minetest_game from 0.4.3
update all the images and 3d itemcubes

PostPosted: Thu Sep 13, 2012 01:24
by bob
BTW: The wiki (homepage) is alright but it is better to use '.jpg' instead of '.png' for websites so that people with a slower internet connection can connect faster and also the code is quite messy, you should have external script (javascript) and style (css) files!
Did you write this from scratch?

PostPosted: Thu Sep 13, 2012 01:58
by cornernote
the images from minetest are png, not really worth it to convert them all. I basically find all the pngs in the textures, then drop them into a folder.

i assume you mean the output code is messy. I dont care about that, i just care about the php files. I could move the js/css to an external file cos they are starting to grow more than a few lines. will do that in the next release.

i wrote everything from scratch except the bootstrap js/css.


EDIT: js/css are now in their own file

PostPosted: Tue Apr 08, 2014 10:15
by JPRuehmann
Hello
The castle_grille mod will not work for me.

Here is the error.
21:31:58: ERROR[main]: ========== ERROR FROM LUA ===========
21:31:58: ERROR[main]: Failed to load and run script from
21:31:58: ERROR[main]: /home/ruehmann/.minetest/mods/castle_grille/init.lua:
21:31:58: ERROR[main]: /home/ruehmann/.minetest/mods/castle_grille/init.lua:42: attempt to call method 'register_on_signal_on' (a nil value)
21:31:58: ERROR[main]: stack traceback:
21:31:58: ERROR[main]: /home/ruehmann/.minetest/mods/castle_grille/init.lua:42: in main chunk
21:31:58: ERROR[main]: ======= END OF ERROR FROM LUA ========
21:31:58: ERROR[main]: Server: Failed to load and run /home/ruehmann/.minetest/mods/castle_grille/init.lua
21:31:58: ERROR[main]: ModError: ModError: Failed to load and run /home/ruehmann/.minetest/mods/castle_grille/init.lua

love to see it fixed.
thanks,
JPR

PostPosted: Tue Apr 08, 2014 12:03
by rubenwardy
You need to report that in the correct mod topic.