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

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

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

by cornernote » Sun Jul 22, 2012 06:55

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
Last edited by cornernote on Wed Apr 01, 2015 09:20, edited 3 times in total.
 

User avatar
LolManKuba
Member
 
Posts: 939
Joined: Fri Feb 10, 2012 22:36

by LolManKuba » Sun Jul 22, 2012 07:36

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.
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Sun Jul 22, 2012 08:03

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)
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Sun Jul 22, 2012 09:07

Would be nice, ive long ago stopped caring about posting the recipes to all my mods lol. (too much crap to remember) lol
"Fuck the hat." - Paulie Gualtieri
 

severak
Member
 
Posts: 24
Joined: Fri Jul 06, 2012 10:40

by severak » Sun Jul 22, 2012 22:15

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)
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Mon Jul 23, 2012 04:59

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
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

hijera
Member
 
Posts: 36
Joined: Sun Jun 19, 2011 13:04

by hijera » Mon Jul 23, 2012 09:33

if you're using SQLite3 , just replace sqlite_escape_string to SQLite3::escapeString in code , and all will work.
Last edited by hijera on Mon Jul 23, 2012 09:57, edited 1 time in total.
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Mon Jul 23, 2012 09:57

hijera wrote:if you're using SQLite3 , just replace sqlite_escape_string to SQLite3::escapeString , and all will work.


thanks, will do
 

User avatar
Jeija
Member
 
Posts: 686
Joined: Fri Dec 23, 2011 21:46

by Jeija » Mon Jul 23, 2012 11:36

Really good job! +1
Redstone for minetest: Mesecons (mesecons.net)
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Mon Jul 23, 2012 14:23

Great! :D
 

severak
Member
 
Posts: 24
Joined: Fri Jul 06, 2012 10:40

by severak » Mon Jul 23, 2012 20:38

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)
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Thu Jul 26, 2012 08:58

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.
 

User avatar
Qaddosh
Member
 
Posts: 30
Joined: Mon Jul 16, 2012 19:08

by Qaddosh » Mon Jul 30, 2012 04:54

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.
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Mon Jul 30, 2012 04:58

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.
 

User avatar
Qaddosh
Member
 
Posts: 30
Joined: Mon Jul 16, 2012 19:08

by Qaddosh » Mon Jul 30, 2012 04:59

Thank you very much.
I appreciate your assistance.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Thu Aug 23, 2012 14:15

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.
Last edited by rubenwardy on Thu Aug 23, 2012 14:19, edited 1 time in total.
 

tinoesroho
Member
 
Posts: 570
Joined: Fri Feb 17, 2012 21:55

by tinoesroho » Thu Aug 23, 2012 15:23

@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.
We are what we create.

I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.

My github:
https://github.com/tinoesroho/
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Thu Aug 23, 2012 15:28

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
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Fri Aug 24, 2012 03:10

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.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Fri Aug 24, 2012 09:23

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 :)
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Fri Aug 24, 2012 23:37

Can you make a search function? the page is very long
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Sat Aug 25, 2012 00:12

Ctrl +f ?
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Wed Sep 12, 2012 22:23

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
 

bob
Member
 
Posts: 66
Joined: Thu Feb 16, 2012 00:59

by bob » Thu Sep 13, 2012 01:24

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?
Last edited by bob on Thu Sep 13, 2012 01:31, edited 1 time in total.
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Thu Sep 13, 2012 01:58

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
Last edited by cornernote on Thu Sep 13, 2012 02:08, edited 1 time in total.
 

User avatar
JPRuehmann
Member
 
Posts: 334
Joined: Fri Mar 21, 2014 21:40

by JPRuehmann » Tue Apr 08, 2014 10:15

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
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Tue Apr 08, 2014 12:03

You need to report that in the correct mod topic.
 


Return to WIP Mods

Who is online

Users browsing this forum: Google [Bot] and 10 guests

cron