Can someone explain?

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

Can someone explain?

by chase programer » Wed Jul 15, 2015 17:16

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

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: Can someone explain?

by Calinou » Wed Jul 15, 2015 17:27

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",
 

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

Re: Can someone explain?

by chase programer » Wed Jul 15, 2015 20:29

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: 679
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: Can someone explain?

by Nathan.S » Thu Jul 16, 2015 00:35

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.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: Can someone explain?

by Krock » Thu Jul 16, 2015 07:02

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"
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

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

Re: Can someone explain?

by chase programer » Thu Jul 16, 2015 14:24

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: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

Re: Can someone explain?

by programmingchicken » Sun Jul 19, 2015 01:20

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
I'm bold. I'm sarcastic. I'm PChicken.
 

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

Re: Can someone explain?

by chase programer » Sun Jul 19, 2015 04:39

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


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 9 guests

cron