[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4866: Undefined array key "database_gc"
FOSS gamedev and creative worlds • View topic - some source addition/changes
Page 1 of 1

some source addition/changes

PostPosted: Mon Aug 27, 2012 20:43
by Mito551
i want to kinda recreate one of crafting methods, but when i just copy-pasted (in craftdef.cpp/craftdef.h) it and compiled new version, it didn't work. i'm trying to keep simple, because i'm not much of a programmer. so i just used code that already was there.
i defined new crafting method, it looks enough/good to me, but once again, i'm not that good with programming and it doesn't work. the game insists that crafting method is not defined.

i modified only two files of source code, is smth else needed? i'd rather not show you the code, i'm both embarrased and wish to keep it secret, what i want to make - basic idea: same crafting method as cooking, but not cooking. however, if it's impossible for you to say what is my mistake (i suspect that i just didn't modify something else that i should have modified), i will post the code.

PostPosted: Tue Aug 28, 2012 00:20
by cornernote
Hi Mito551,

You should be able to achieve this without editing c++ code. Have a look how workbench mod works. It provides new crafting options. Also I think the technic mod has a grinder node in there that provides new crafting options.

workbench:
http://minetest.net/forum/viewtopic.php?id=2000

technic grinder:
https://github.com/RealBadAngel/technic/blob/master/grinder.lua

PostPosted: Tue Aug 28, 2012 07:25
by Mito551
grinder idea might work, thanks. but my basic idea is different. i want to have my own cooking with (blackjack and hookers :P) other 'fuel's and 'src's. and that's the point where the game doesn't know my own 'fuel's and 'src's and crafting method.

if anyone could just tell me which files i have to modify to add crafting methods, that would be enough.
thanks for trying to make it easier, though, cornernote.