Page 1 of 1

Can someone explain?

PostPosted: Wed Jul 15, 2015 17:16
by chase programer
I keep getting this issue when i run my modification.

Error:
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
Irrlicht log: Irrlicht Engine version 1.8.1
Irrlicht log: Microsoft Windows 7 Professional Edition Service Pack 1 (Build 7601)
Irrlicht log: Using renderer: OpenGL 4.1.10750
Irrlicht log: AMD Radeon HD 6800 Series: ATI Technologies Inc.
Irrlicht log: OpenGL driver version is 1.2 or better.
Irrlicht log: GLSL version: 4.1
Irrlicht log: Resizing window (800 600)
13:13:17: ERROR[main]: The following mods could not be found: "tutorial"
13:13:17: ERROR[main]: ========== ERROR FROM LUA ===========
13:13:17: ERROR[main]: Failed to load and run script from
13:13:17: ERROR[main]: C:\Users\hockshop\Desktop\minetest-0.4.12\bin\..\mods\morewoodplus\init.lua:
13:13:17: ERROR[main]: ...esktop\minetest-0.4.12\bin\..\mods\morewoodplus\init.lua:3: '}' expected (to close '{' at line 1) near 'tiles'
13:13:18: ERROR[main]: ======= END OF ERROR FROM LUA ========
13:13:18: ERROR[main]: Server: Failed to load and run C:\Users\hockshop\Desktop\minetest-0.4.12\bin\..\mods\morewoodplus\init.lua
13:13:18: ERROR[main]: ModError: ModError: Failed to load and run C:\Users\hockshop\Desktop\minetest-0.4.12\bin\..\mods\morewoodplus\init.lua


Recent Addition to the code:
viewtopic.php?f=9&t=12821&p=184501#p184501

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
minetest.register_node("morewoodplus:lightbrown", {
   description = "Light Brown Wood"
   tiles = {"morewoodplus_lightbrown.png"},
   groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
})
minetest.register_craft({
   output = 'morewoodplus:lightbrown 16',
   recipe = {
      {'default:stick', 'default:wood'},
      {'default:wood', 'default:wood'}
   }
})
minetest.register_node("morewoodplus:darkbrown", {
   description = "Dark Brown Wood"
   tiles = {"morewoodplus_darkbrown.png"},
   groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
})
minetest.register_craft({
   output = 'morewoodplus:darkbrown 16',
   recipe = {
      {'default:wood', 'default:stick'},
      {'default:wood', 'default:wood'}
   }
})

Re: Can someone explain?

PostPosted: Wed Jul 15, 2015 17:27
by Calinou
You forgot a , on line 2:
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
   description = "Light Brown Wood"

should be
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
   description = "Light Brown Wood",

Re: Can someone explain?

PostPosted: Wed Jul 15, 2015 20:29
by chase programer
Now i am getting this any more help?

-------------
Separator
-------------

Irrlicht log: Irrlicht Engine version 1.8.1
Irrlicht log: Microsoft Windows 7 Professional Edition Service Pack 1 (Build 7601)
Irrlicht log: Using renderer: OpenGL 4.1.10750
Irrlicht log: AMD Radeon HD 6800 Series: ATI Technologies Inc.
Irrlicht log: OpenGL driver version is 1.2 or better.
Irrlicht log: GLSL version: 4.1
Irrlicht log: Resizing window (800 600)
16:27:58: ERROR[main]: The following mods could not be found: "tutorial"
16:27:58: ERROR[main]: ========== ERROR FROM LUA ===========
16:27:58: ERROR[main]: Failed to load and run script from
16:27:58: ERROR[main]: C:\Users\hockshop\Desktop\minetest-0.4.12\bin\..\mods\morewoodplus\init.lua:
16:27:58: ERROR[main]: ...esktop\minetest-0.4.12\bin\..\mods\morewoodplus\init.lua:4: '}' expected (to close '{' at line 1) near 'groups'
16:27:58: ERROR[main]: ======= END OF ERROR FROM LUA ========
16:27:58: ERROR[main]: Server: Failed to load and run C:\Users\hockshop\Desktop\minetest-0.4.12\bin\..\mods\morewoodplus\init.lua
16:27:58: ERROR[main]: ModError: ModError: Failed to load and run C:\Users\hockshop\Desktop\minetest-0.4.12\bin\..\mods\morewoodplus\init.lua

Re: Can someone explain?

PostPosted: Thu Jul 16, 2015 00:35
by Nathan.S
For some reason it is looking for a closing brace, to close the brace in line one. You have a closing brace in line five though. All punctuation looks all right to me, and I'm not seeing any spelling errors. Maybe try commenting out line four, just use two dashes at the beginning of the line to make it a comment.

Re: Can someone explain?

PostPosted: Thu Jul 16, 2015 07:02
by Krock
Calinou wrote:You forgot a , on line 2:
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
   description = "Light Brown Wood"

should be
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
   description = "Light Brown Wood",

Same situation for
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
description = "Dark Brown Wood"

Re: Can someone explain?

PostPosted: Thu Jul 16, 2015 14:24
by chase programer
I have added dashes on line 5 but that takes away being able to break the light brown wood and without the dashes i cannot play with the mod.

Re: Can someone explain?

PostPosted: Sun Jul 19, 2015 01:20
by programmingchicken
ok, play around with the mod code, but when you get an error, READ IT. Error codes would just be ERROR if they didn't need to be read.
13:13:17: ERROR[main]: ...esktop\minetest-0.4.12\bin\..\mods\morewoodplus\init.lua:3: '}' expected (to close '{' at line 1) near 'tiles'

on line 3, the character " } " was expected to close the table that was started on line one. It's near the keyword 'tiles'.
It means that the Minetest mod API thinks that you should have closed the table there. it's usually caused by you not adding a " , " after the method.
READ THEM THERE ERRORS BUDDY

Re: Can someone explain?

PostPosted: Sun Jul 19, 2015 04:39
by chase programer
Thanks for all your help but none of these fixed the problem i have found a working fix.