Can someone explain?

Post Reply
chase programer
Member
Posts: 117
Joined: Thu Jan 03, 2013 16:56
Location: Everywhere.

Can someone explain?

by chase programer » Post

I keep getting this issue when i run my modification.

Error:

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

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'}
   }
})

User avatar
Calinou
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

Re: Can someone explain?

by Calinou » Post

You forgot a , on line 2:

Code: Select all

   description = "Light Brown Wood"
should be

Code: Select all

   description = "Light Brown Wood",

chase programer
Member
Posts: 117
Joined: Thu Jan 03, 2013 16:56
Location: Everywhere.

Re: Can someone explain?

by chase programer » Post

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

User avatar
Nathan.S
Member
Posts: 1147
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: Can someone explain?

by Nathan.S » Post

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.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

User avatar
Krock
Developer
Posts: 4649
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: Can someone explain?

by Krock » Post

Calinou wrote:You forgot a , on line 2:

Code: Select all

   description = "Light Brown Wood"
should be

Code: Select all

   description = "Light Brown Wood",
Same situation for

Code: Select all

description = "Dark Brown Wood"
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

chase programer
Member
Posts: 117
Joined: Thu Jan 03, 2013 16:56
Location: Everywhere.

Re: Can someone explain?

by chase programer » Post

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.

User avatar
programmingchicken
Member
Posts: 540
Joined: Sat Apr 18, 2015 02:20
GitHub: pchicken
IRC: chicken pchicken
Location: not here
Contact:

Re: Can someone explain?

by programmingchicken » Post

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
<gamerdude> I apologize for the above content

chase programer
Member
Posts: 117
Joined: Thu Jan 03, 2013 16:56
Location: Everywhere.

Re: Can someone explain?

by chase programer » Post

Thanks for all your help but none of these fixed the problem i have found a working fix.

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 4 guests