expecting Keyword_end

Status
Not open for further replies.

Sausage_Boi

Game Dev. "Artist."
Veteran
Joined
Sep 10, 2014
Messages
1,733
Reaction score
681
First Language
Americanese
Primarily Uses
RMVXA


When I try and run a game with Velvet Isis' script, I get this error. Line 87, specifically is: (@map_terrain_camos ||= {}) ||= VIS::TERRAIN_CAMOS

In context, the whole block is:

def terrain_camos(ter)
(@map_terrain_camos ||= {}) ||= VIS::TERRAIN_CAMOS
@map_terrain_camos
end
end

There are options to define terrain camo in lines 51-66, but I can't make heads or tails of it:

TERRAIN_CAMOS = { 1 => 60}
#These are how much Camo a Terrain Tag gives when standing on it.
#These go across all maps. Use the format: terrain_id => camo
#So right now terrain tag 1 has a Camo value of 60.

TERRAIN_CAMOS.default = 0
#This is the default camo of any undefined terrain above.
end

link to the whole script can be found here
 

MobiusXVI

Game Maker
Veteran
Joined
Mar 20, 2013
Messages
383
Reaction score
91
First Language
English
Primarily Uses
Looking at the original script, that line is:

(@map_terrain_camos ||= {})[@map_id] ||= VIS::TERRAIN_CAMOS

Which is different from you posted, so it looks like you just messed up the script. I'd try re-copy/pasting the script into your project.
 

Sausage_Boi

Game Dev. "Artist."
Veteran
Joined
Sep 10, 2014
Messages
1,733
Reaction score
681
First Language
Americanese
Primarily Uses
RMVXA
hey thanks for the reply. I may have messed up that line, not sure. But i had copied it multiple times and always the same thing. I contacted the author and he said he forgot code tags and the start and end so it wasn't registering the brackets, or something like that. It works now, though.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

at OP's request
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,019
Members
137,564
Latest member
McFinnaPants
Top