[Mod] Specialties [3.5] [specialties]

User avatar
Minetestforfun
Member
Posts: 940
Joined: Tue Aug 05, 2014 14:09
GitHub: MinetestForFun
IRC: MinetestForFun
In-game: MinetestForFun
Location: On earth
Contact:

Re: [Mod] Specialties [3.5] [specialties]

by Minetestforfun » Post

if this mod is dead, it's too bad :(

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] Specialties [3.5] [specialties]

by Don » Post

Its a great mod. I hope someone continues it
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Mod] Specialties [3.5] [specialties]

by Sokomine » Post

Don wrote: Its a great mod. I hope someone continues it
That's right! It didn't do terribly much; yet it felt right to have the mod enabled. It ran on Menches old server and worked pretty well there.

I think the mod ought to be combined with what RealTest and AdventureTest have. It would fit in there very well.
A list of my mods can be found here.

Shammmmmm
Member
Posts: 27
Joined: Sat Sep 20, 2014 21:31
GitHub: Shammmmmm
IRC: Shammmmmmm
In-game: Shammmmmm
Location: Philippines

Re: [Mod] Specialties [3.5] [specialties]

by Shammmmmm » Post

What is your texture pack?
You Can call me Sham
New mods incoming by me :)

User avatar
Napiophelios
Member
Posts: 1035
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Specialties [3.5] [specialties]

by Napiophelios » Post

Shammmmmm wrote:What is your texture pack?
Its one of the Dokucraft packs I think.

Shammmmmm
Member
Posts: 27
Joined: Sat Sep 20, 2014 21:31
GitHub: Shammmmmm
IRC: Shammmmmmm
In-game: Shammmmmm
Location: Philippines

Re: [Mod] Specialties [3.5] [specialties]

by Shammmmmm » Post

Napiophelios wrote:
Shammmmmm wrote:What is your texture pack?
Its one of the Dokucraft packs I think.
Really ? the link sir XD
You Can call me Sham
New mods incoming by me :)

User avatar
Napiophelios
Member
Posts: 1035
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Specialties [3.5] [specialties]

by Napiophelios » Post

Dokucraft For Minetest -- Inactive

download:
dark version http://www.mediafire.com/?rlvchy19h73mrt5
light version http://www.mediafire.com/?b1yomn283acf5zp

there is another variant by "Matt" but I cant look anymore right now

DreamGuardian
Member
Posts: 12
Joined: Wed Feb 13, 2019 02:10
In-game: Dream_Guardian

Re: [Mod] Specialties [3.5] [specialties]

by DreamGuardian » Post

ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod '' in callback item_OnPlace(): ...test 5\bin\..\games\minetest_game\mods\default/torch.lua:62: attempt to index local 'itemstack' (a nil value)
2019-06-06 17:07:41: ERROR[Main]: stack traceback:
2019-06-06 17:07:41: ERROR[Main]: ...test 5\bin\..\games\minetest_game\mods\default/torch.lua:62: in function <...test 5\bin\..\games\minetest_game\mods\default/torch.lua:39>

The game crashes as soon as a torch is placed and after logging back in, the torch is placed but the amount of torches stay the same in inventory. This can be done with just the mods specialties, unified_inventory, and unified_inventory_plus on Minetest 5.0.1

Is there a way around this? I love the idea of the mod and keeping track of what is done in the game. Hopefully it can be fixed.

User avatar
Skamiz Kazzarch
Member
Posts: 613
Joined: Fri Mar 09, 2018 20:34
GitHub: Skamiz
In-game: Skamiz
Location: la lojbaugag.

Re: [Mod] Specialties [3.5] [specialties]

by Skamiz Kazzarch » Post

Go to the mods 'init.lua' file and find this:

Code: Select all

function minetest.item_place_node(itemstack, placer, pointed_thing)
	place_node(itemstack, placer, pointed_thing)
	specialties.changeXP(placer:get_player_name(), "builder", 1)
end
It should be on the 246 line.
and replace it with this:

Code: Select all

function minetest.item_place_node(itemstack, placer, pointed_thing)
	local return_stack, success = place_node(itemstack, placer, pointed_thing)
	specialties.changeXP(placer:get_player_name(), "builder", 1)
	return return_stack, success
end
Untested, but I am reasonbly sure that it should work.

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

Re: [Mod] Specialties [3.5] [specialties]

by bosapara » Post

Skamiz Kazzarch wrote:Untested, but I am reasonbly sure that it should work.
Works good with your changes.

Image
Attachments
specialties.zip
(53.96 KiB) Downloaded 48 times

DreamGuardian
Member
Posts: 12
Joined: Wed Feb 13, 2019 02:10
In-game: Dream_Guardian

Re: [Mod] Specialties [3.5] [specialties]

by DreamGuardian » Post

Amazing! Thank you. It all works now. I would love to get into working with LUA and also how or what do you use for editing that can tell you the line number? the only thing i can do for now is view the lines in github and use notepad to open the file to edit.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 19 guests