[Mod] Craft Guide Mod Renewed [cgmr]

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

by deivan » Mon May 06, 2013 21:21

Ok, new version in the download server. Ready for test.
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

by deivan » Tue May 07, 2013 00:05

After many tests I don't am capable to reproduce the fail reported by sapier (dont see the formspec from the node) then I make a blind workaround, now every time you click or punch the pc the formspec is generated again, I don't have side effects here then I think this solve this case without create another case.

Then today I solved two bugs:
1) Forspec don't is loading from sapier (but I don't know if will work to him, I waiting for a return)
2) Don't load of recipes in other versions. Here is working, anyway I tested in the windows old but 4.6 version and don't is working, then I added a extra code do cover other options. I need someone who have the problem testing it to.

Anyway thanks, every report of problem is a possibility to make a better mod. ;)
Last edited by deivan on Tue May 07, 2013 00:06, edited 1 time in total.
 

vktRus
Member
 
Posts: 67
Joined: Wed May 01, 2013 07:23

by vktRus » Tue May 07, 2013 16:11

Excellent, works.
And i updated the server to https://launchpad.net/~minetestdevs/+archive/daily-builds
 

sapier
Member
 
Posts: 763
Joined: Tue Aug 16, 2011 18:17

by sapier » Tue May 07, 2013 18:52

sorry still doesn't work for me
DON'T mention coding style!
(c) sapier all rights reserved
 

vktRus
Member
 
Posts: 67
Joined: Wed May 01, 2013 07:23

by vktRus » Tue May 07, 2013 19:07

 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

by deivan » Tue May 07, 2013 22:10

Sapier, if don't show the menu at the first time and you get the item back and deploy again and don't see the menu. Give some punches. For each try a new form is generated then I don't know how is possible in your game the menu never appear. Maybe a 64bits specific problem with some of my vars? I don't know, I need more data about your version of the game or a copy of it but if is a 64 bits don't will work here ( I have a 686 kernel). :-/
 

vktRus
Member
 
Posts: 67
Joined: Wed May 01, 2013 07:23

by vktRus » Wed May 08, 2013 14:40

Server crush:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
18:14:16: ERROR[main]: ServerEnvironment::deactivateFarObjects(): id=437 m_static_exists=true but static data doesn't actually exist in (-7,1,-7)
WARNING: StaticObjectList::remove(): id=437 not found
18:14:16: ERROR[main]: ServerEnvironment::deactivateFarObjects(): id=440 m_static_exists=true but static data doesn't actually exist in (-7,1,-8)
WARNING: StaticObjectList::remove(): id=440 not found
18:14:16: ERROR[main]: ServerEnvironment::deactivateFarObjects(): id=441 m_static_exists=true but static data doesn't actually exist in (-8,1,-7)
WARNING: StaticObjectList::remove(): id=441 not found
18:14:16: ERROR[main]: ServerEnvironment::deactivateFarObjects(): id=442 m_static_exists=true but static data doesn't actually exist in (-8,1,-7)
WARNING: StaticObjectList::remove(): id=442 not found
18:14:16: ERROR[main]: ServerEnvironment::deactivateFarObjects(): id=444 m_static_exists=true but static data doesn't actually exist in (-7,1,-7)
WARNING: StaticObjectList::remove(): id=444 not found
18:14:16: ERROR[main]: ServerEnvironment::deactivateFarObjects(): id=447 m_static_exists=true but static data doesn't actually exist in (-8,1,-7)
WARNING: StaticObjectList::remove(): id=447 not found
18:14:16: ERROR[main]: ServerEnvironment::deactivateFarObjects(): id=448 m_static_exists=true but static data doesn't actually exist in (-8,1,-7)
WARNING: StaticObjectList::remove(): id=448 not found
18:14:16: ERROR[main]: ServerEnvironment::deactivateFarObjects(): id=450 m_static_exists=true but static data doesn't actually exist in (-7,1,-8)
WARNING: StaticObjectList::remove(): id=450 not found
18:14:16: ERROR[main]: ServerEnvironment::deactivateFarObjects(): id=451 m_static_exists=true but static data doesn't actually exist in (-7,1,-7)
WARNING: StaticObjectList::remove(): id=451 not found
18:14:16: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: ...inetest/.minetest/mods/minetest/DOM/cgmr/rotinas.lua:295: attempt to concatenate global 'local_receita_nome'
 (a nil value)
18:14:16: ERROR[main]: stack traceback:

In thread b6d17700:
/build/buildd/minetestc55-201305062007/src/main.cpp:2024: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b6d17700:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  virtual void ServerMap::saveBlock(MapBlock*))
(Leftover data: #4  void ItemStack::serialize(std::ostream&) const)
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

by deivan » Wed May 08, 2013 19:37

The line 295, don't have reference to this var in the current version. I regenerated all my downloads in the server now...
Try download again and say to me if is working now.

Waiting...
Last edited by deivan on Wed May 08, 2013 19:37, edited 1 time in total.
 

vktRus
Member
 
Posts: 67
Joined: Wed May 01, 2013 07:23

by vktRus » Thu May 09, 2013 22:15

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
02:12:28: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: ...netest/.minetest/mods/minetest/DOM/watch/rotinas.lua:134: attempt to index a nil value
02:12:28: ERROR[main]: stack traceback:

In thread b6d86700:
/build/buildd/minetestc55-201305062007/src/main.cpp:2024: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD b6d86700:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  virtual void ServerMap::save(ModifiedState))
(Leftover data: #3  virtual void ServerMap::saveBlock(MapBlock*))
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

by deivan » Thu May 09, 2013 22:43

Ok, 134. I will check it.

Ops, this fail is occurring in another mod, the watch, I will check it.
Last edited by deivan on Thu May 09, 2013 22:45, edited 1 time in total.
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

by deivan » Thu May 09, 2013 22:47

You have the last version of the watch mod? This fail don't happened here. :-/

Is a Windows version of the game?
 

vktRus
Member
 
Posts: 67
Joined: Wed May 01, 2013 07:23

by vktRus » Mon May 13, 2013 16:41

Mod — last version.
Ubuntu 12.04. Minetest — stable build
I now use this nice menu with built-in craft guide from technic mod
forum.minetest.net/viewtopic.php?id=2538.
Image
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

by deivan » Mon May 13, 2013 18:09

Sorry, this screen don't is from this mod. I don't am working in screens to this one before clear all bugs.
 

keyxmakerx
Member
 
Posts: 104
Joined: Mon Apr 08, 2013 23:53

by keyxmakerx » Mon May 13, 2013 21:26

This mod no longer works for me, any knowledge of this happening?
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

by deivan » Tue May 14, 2013 13:27

You have a error message?
 

keyxmakerx
Member
 
Posts: 104
Joined: Mon Apr 08, 2013 23:53

by keyxmakerx » Tue May 14, 2013 14:49

deivan wrote:You have a error message?

No, It works per say, but the items no longer show up via the interface.
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

by deivan » Tue May 14, 2013 15:11

Windows or Linux version?
 

keyxmakerx
Member
 
Posts: 104
Joined: Mon Apr 08, 2013 23:53

by keyxmakerx » Tue May 14, 2013 15:15

deivan wrote:Windows or Linux version?

Linux, beta
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

by deivan » Tue May 14, 2013 15:24

Beta version of the game? Compiled from the git?
 

keyxmakerx
Member
 
Posts: 104
Joined: Mon Apr 08, 2013 23:53

by keyxmakerx » Fri May 17, 2013 07:49

deivan wrote:Beta version of the game? Compiled from the git?

I have no knowledge of compiling, but the deb package I installed came from the unstable builds.
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

by 12Me21 » Sun May 19, 2013 19:00

Is there a way to make a recipe not show in the crafting guide, so that it's secret?
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

by deivan » Sun May 19, 2013 20:48

Not a this point but, if someone request, a recipe will be hidden from the list, maybe if a option added, like hidden_recipe=1.
 

User avatar
Casimir
Member
 
Posts: 1101
Joined: Fri Aug 03, 2012 16:59

by Casimir » Sun May 19, 2013 21:00

Check for groups, e.g. "hide_recipe".

Some other tips: Use github, so others can help you. Translate the comments into English, this helps understanding the code. The more code you have the more problems can appear, so try to make the mod smaller.
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

by deivan » Mon May 20, 2013 13:05

The mod is very small but have many code. I optimized great part of the code but I need recode the entire mod from the scratch. This version started from the old mod then many of the code will be removed in the new version.

When I rewrite it I remove all comments then the "comment" problem disappear.

The biggest part of the mod is the collector function and is very compact code.
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

by 12Me21 » Mon May 20, 2013 20:57

deivan wrote:Not a this point but, if someone request, a recipe will be hidden from the list, maybe if a option added, like hidden_recipe=1.

In the old crafting guide mod there was a group called "not_in_crafting_guide"
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

by deivan » Tue May 21, 2013 13:34

Ok, but in the game don't have a similar group?

I have a second possibility, the option to block some items listed in a config file. The configuration now is in the script file. I have options to load only recipes or to include recipes of types moreblocks (circular saw) or technic (alloy).
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

by deivan » Thu Jun 06, 2013 20:58

No problem with the version 0.4.7. All ok here with this mod.
 

bentleysb
Member
 
Posts: 18
Joined: Sat Feb 09, 2013 02:18

by bentleysb » Fri Jun 21, 2013 18:16

When trying to use this mod in 0.4.7 I encountered an error with domb. It is as follows:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
11:12:55: ERROR[main]: ========== ERROR FROM LUA ===========
11:12:55: ERROR[main]: Failed to load and run script from
11:12:55: ERROR[main]: C:\Users\Bentley\Desktop\minetest-0.4.7\minetest-0.4.7\bin\..\mods\domb\init.lua:
11:12:55: ERROR[main]: ...\minetest-0.4.7\minetest-0.4.7\bin\..\mods\domb/domb.lua:365: invalid escape sequence near '"[DOM]DOM_util, use '
11:12:55: ERROR[main]: stack traceback:
11:12:55: ERROR[main]:     [C]: in function 'dofile'
11:12:55: ERROR[main]:     ...\minetest-0.4.7\minetest-0.4.7\bin\..\mods\domb\init.lua:4: in main chunk


I tried it on 2 different copies of 0.4.7 and I re downloaded domb but still the same error.
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

by deivan » Fri Jun 21, 2013 18:28

Hum... This is new. I will solve this ASAP.

Windows user?
Last edited by deivan on Fri Jun 21, 2013 18:29, edited 1 time in total.
 

bentleysb
Member
 
Posts: 18
Joined: Sat Feb 09, 2013 02:18

by bentleysb » Fri Jun 21, 2013 18:30

deivan wrote:Hum... This is new. I will solve this ASAP.

Windows user?


yes I use Windows.
 

PreviousNext

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 37 guests

cron