[Mod] Craft Guide Mod Renewed [cgmr]

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Wed Apr 10, 2013 12:28

Use aliases
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

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

by deivan » Wed Apr 10, 2013 12:43

Don't is my mod... Is only a example.
-*-
If the alias idea is good to you jojoa1997 give me a list of all items making problems in your game and I make all aliases in need.
-*-
Released new version, 20130410:
- Added the support to load broken recipes with broken items from a broken mod, the name of the item appear in the recipe helping to search the cause of a problem. :)
- Translated some more comments.
- Cleaning some old points of the code.
- A little speed up in the general execution of the routines.

I see a problem here, if you removed some of your mods and a computer have a old search, the old list still in the screen but all images (from the removed mod) have a unknown inscription, well, don't is a problem I think, the computer don't crash and this list disappear after a new search, or if you catch and put the computer again.
I don't have problems with this here and this status make some nice persistence to the item. :D
Last edited by deivan on Wed Apr 10, 2013 13:49, edited 1 time in total.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Wed Apr 10, 2013 15:01

No the thing is i am saying change the craft guide item name to a different one. English. it is confiusing when i am looking and have to read spanish in the middle of english. or what ever language it is
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

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

by deivan » Wed Apr 10, 2013 15:09

I need the number of the lines to correct. Indicate to me the point of this "spanish" text please.
(The interface is full in english no?)
Last edited by deivan on Wed Apr 10, 2013 15:09, edited 1 time in total.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Wed Apr 10, 2013 15:09

i iwll edit it when i get home. it will only be names
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

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

by deivan » Wed Apr 10, 2013 15:10

Ok, give me a light, a name, line number, any. I will hunt down the error. :D
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Wed Apr 10, 2013 15:12

no it isnt the error. you will see when i post a download
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

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

by deivan » Wed Apr 10, 2013 15:26

Don't is a error in the text in the mod?
 

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

by deivan » Thu Apr 11, 2013 11:59

Well, after the update from today the mod don't is reading recipes any more, I am working to solve this ASAP.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Thu Apr 11, 2013 12:21

I suggest to make this not depend on moreblocks since it is a needed mod and shoujkd depend on default.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

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

by deivan » Thu Apr 11, 2013 12:52

Bug solved. New version released.
Added a second search field then if you need a block with the name who have "quarter" and "wood" is possible search both words in a single operation. Is a "and" operation then if a word don't exist in the entire database of items the list return zero results.

I have a small bug in the centralize routine then, sometimes, a recipe don't appear in the centre of the screen, I solve this ASAP but is a minor bug, then, low priority.

Jojoa1997, about the moreblocks depends, nice catch, this mod don't depend of him, is only for the recipe, I update the recipe.

New base recipe use default:wood to leave the moreblocks dependence. I only need my own library now and the default.
Last edited by deivan on Thu Apr 11, 2013 15:29, edited 1 time in total.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Thu Apr 11, 2013 15:35

could you translate the files names and items to english. like biblio* would become lib.ua or library.lua
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

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

by deivan » Thu Apr 11, 2013 16:22

I renamed some of the files from offensive names to small single letter or small names, I thing the entire code is operational again but rename all functions need time, maybe 12h, or more...
The version is operational but don't is bug-free-guaranteed, if someone found a bug please call me. :D
Last edited by deivan on Thu Apr 11, 2013 16:23, edited 1 time in total.
 

User avatar
addi
Member
 
Posts: 605
Joined: Thu Sep 20, 2012 03:16

by addi » Fri Apr 12, 2013 15:15

it seam that it conflicts with the circular saw mod
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
17:07:46: ERROR[main]: ========== ERROR FROM LUA ===========
17:07:46: ERROR[main]: Failed to load and run script from
17:07:46: ERROR[main]: ...mods\DOM\cgmr\init.lua:
17:07:46: ERROR[main]: ...mods\DOM\cgmr/r2.lua:44: attempt to index global 'circular_saw' (a nil value)
17:07:46: ERROR[main]: stack traceback:
17:07:46: ERROR[main]:     ...\mods\DOM\cgmr/r2.lua:44: in function 'carrega_lista_de_itens_secundaria'
17:07:46: ERROR[main]:     ...\mods\DOM\cgmr/r.lua:69: in function 'carrega_lista_de_itens'
17:07:46: ERROR[main]:     ...\mods\DOM\cgmr\init.lua:25: in main chunk
17:07:46: ERROR[main]: =======END OF ERROR FROM LUA ========
Last edited by addi on Fri Apr 12, 2013 15:16, edited 1 time in total.
 

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

by deivan » Fri Apr 12, 2013 15:21

Maybe you have a old version of the saw. Or is caused by rename of the files. Checking...

My fault, I don't check if someone don't have moreblocks, I make a fix to it in some minutes...
Last edited by deivan on Fri Apr 12, 2013 15:22, edited 1 time in total.
 

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

by deivan » Fri Apr 12, 2013 15:39

Mod fixed, new version released, now if you don't have the mod moreblocks or the mod techcnic the mod don't make problems. :D
Last edited by deivan on Fri Apr 12, 2013 15:40, edited 1 time in total.
 

User avatar
addi
Member
 
Posts: 605
Joined: Thu Sep 20, 2012 03:16

by addi » Fri Apr 12, 2013 17:00

sorry it doesent seam to work :(
moreblocks and technic is installed
the same error but other line numbers:
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:54:16: ERROR[main]: ========== ERROR FROM LUA ===========
18:54:16: ERROR[main]: Failed to load and run script from
18:54:16: ERROR[main]: ...\mods\DOM\cgmr\init.lua:
18:54:16: ERROR[main]: ...\mods\DOM\cgmr/r2.lua:66: attempt to index global 'circular_saw' (a nil value)
18:54:16: ERROR[main]: stack traceback:
18:54:16: ERROR[main]:     ...\mods\DOM\cgmr/r2.lua:66: in function 'carrega_lista_de_itens_secundaria'
18:54:16: ERROR[main]:     ...\mods\DOM\cgmr/r.lua:71: in function 'carrega_lista_de_itens'
18:54:16: ERROR[main]:     ...\mods\DOM\cgmr\init.lua:25: in main chunk
18:54:16: ERROR[main]: =======END OF ERROR FROM LUA ========
 

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

by deivan » Fri Apr 12, 2013 17:11

You have more blocks? I added a new fix to cover who have moreblocks with a version without circular saw. Try this one. ;)
Last edited by deivan on Fri Apr 12, 2013 17:17, edited 1 time in total.
 

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

by deivan » Sun Apr 14, 2013 15:04

Released a minor update. I don't remember but I think this one don't have new functions. Is close to the same old mod. :D
Last edited by deivan on Sun Apr 14, 2013 15:04, edited 1 time in total.
 

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

by deivan » Mon Apr 15, 2013 13:23

I split my mods and my library, in this format I don't need a new release to all if I update the library. I only update the library to fix any problem. :D
 

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

by deivan » Tue Apr 16, 2013 20:30

Minor updated released, I found a bug who crach the game if you move a item from the output box to the bookmark box. Already is fixed now. :D
 

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

by deivan » Tue Apr 16, 2013 22:17

More one bug solved. Now items at the first col/row don't disappear any more. Ok, I don't know any more bug in this mod. :D
 

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

by sapier » Sat Apr 20, 2013 14:23

this mod doesn't seam to work with current stable 0.4.6 ... at least for me. Does anyone else have problems with 0.4.6?
DON'T mention coding style!
(c) sapier all rights reserved
 

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

by deivan » Sat Apr 20, 2013 15:16

Is working... You have a error message?
-*-
I tested now, again, in the minimal game, no fails. In a game started with only this mod, my API and all common mods. (Bucket, default, doors, ...)

Hum... My game is from the git, is the 4.6 from the git the same 4.6 stable?
Last edited by deivan on Sat Apr 20, 2013 15:25, edited 1 time in total.
 

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

by sapier » Sat Apr 20, 2013 16:49

No I don't have an error message craftguide isn't crashing it just doesn't show anythin if I move something to output.

git master is not same as 0.4.6, but of course you can download 0.4.6 from git too don't know what you did ;-)
DON'T mention coding style!
(c) sapier all rights reserved
 

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

by deivan » Sat Apr 20, 2013 17:50

Maybe your version don't retrieve all recipes, I will test with another version of the game. I update after test.
 

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

by deivan » Sat Apr 20, 2013 18:35

Well, I downloaded now the game from here: http://minetest.ru/builds/minetest-0.4.6.zip, unpaked in a folder, copied my mod and my api to the directory "<game folder>/mods/minetest" and started a new local game. My mod is working in this test without any fail, no error messages and all recipes are loaded.
-*-
Is possible identify the game version running with my mod to alert users about a incompatible version?

Maybe use the chat command /cgmr without params and see how many items appear in the loaded list, if is zero, no item is loaded... At last 2 items will be here, from this mod.

Well, have a second problem, sometimes my mod load after all, if is the case you only need update all recipes with the chat command /cgmr reload. Provably is this your problem. Now I am understanding. :D
Last edited by deivan on Sat Apr 20, 2013 18:39, edited 1 time in total.
 

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

by deivan » Sat Apr 20, 2013 18:50

I have a better solution to this small problem. I added a function who updated the list after the first construction of the formspec of any cgmr in the world. Or after the first search, after this all will be updated.
I release a new version after test all here.

Thanks Sapier, I never will remember of this small problem if you don't call me to see it. :D
 

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

by deivan » Sat Apr 20, 2013 18:56

Ok, version 20130420 released. Is working here. :D
 

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

by sapier » Sat Apr 20, 2013 20:58

hmm now not even form is shown to me anymore :-/
I'm using plain 0.4.6, only default common enabled, debian wheezy.
what os are you testing?

I tried to find the bug but I don't understand your language and guessing what functions do is quite difficult :-/
DON'T mention coding style!
(c) sapier all rights reserved
 

PreviousNext

Return to Mod Releases

Who is online

Users browsing this forum: Bing [Bot] and 33 guests

cron