some source addition/changes

User avatar
Mito551
Member
 
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

some source addition/changes

by Mito551 » Mon Aug 27, 2012 20:43

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.
 

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

by cornernote » Tue Aug 28, 2012 00:20

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
Last edited by cornernote on Tue Aug 28, 2012 00:21, edited 1 time in total.
 

User avatar
Mito551
Member
 
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Tue Aug 28, 2012 07:25

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.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 18 guests