Results 1 to 5 of 5

Thread: More Vista Problems

  1. #1
    Lesser Wizard
    Join Date
    Mar 2008
    Posts
    124

    Default More Vista Problems

    Following on from my continuing probelsm with Oh Sh!t, I have been dropping in from time to time to see if my game will work on the latest version of Novashell.

    Unfortunately, the game simply crashes out on startup with the following error message

    Code:
    Initializing GameLogic...
    Clanlib Sound System Initialized
    Novashell V0.29 and Lua 5.13 Initted.
    No mod has overidden script/game_start.lua.  Running default, which let's the player choose a world.
    Loaded map hidden_Base Startup at tick 0.  2 non-empty chunks, size is 1 by 1.
    Restarting engine...
    
    Initializing GameLogic...
    Clanlib Sound System Initialized
    Mounting world path worlds/RT_Elevation.
    Novashell V0.29 and Lua 5.13 Initted.
    Initting world
    Initting intro menu
    Loaded map Intro at tick 4789.  16 non-empty chunks, size is 3 by 3.
    Resetting!
    Clearing all maps
    User profile path now C:\Users\rbsch\Desktop\Novashell/profiles/Player/RT_Elevation
    Running our custom tree world game start code.
    Setting game defaults
    Map Inside not found
    Loaded map Main at tick 0.  9 non-empty chunks, size is 7 by 4.
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 131, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 132, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 133, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 134, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 135, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 136, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 137, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 138, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 139, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 140, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 141, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 142, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 143, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 144, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 145, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 146, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 147, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 148, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 149, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 150, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 151, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 152, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 153, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 154, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 155, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 156, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 157, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 158, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 159, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 160, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 161, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 162, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 163, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 164, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 165, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 166, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 167, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 168, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 169, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 170, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 171, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 172, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 173, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 174, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 175, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/items/coin/coin.lua:8: Variable 'C_LISTEN_COLLISION_PLAYER_ONLY' is not defined.
    Entity 176, function OnInit
    Initting coins..
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/items/coin/coin.lua:8: Variable 'C_LISTEN_COLLISION_PLAYER_ONLY' is not defined.
    Entity 177, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/items/coin/coin.lua:8: Variable 'C_LISTEN_COLLISION_PLAYER_ONLY' is not defined.
    Entity 178, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/items/coin/coin.lua:8: Variable 'C_LISTEN_COLLISION_PLAYER_ONLY' is not defined.
    Entity 179, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/items/coin/coin.lua:8: Variable 'C_LISTEN_COLLISION_PLAYER_ONLY' is not defined.
    Entity 180, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/items/coin/coin.lua:8: Variable 'C_LISTEN_COLLISION_PLAYER_ONLY' is not defined.
    Entity 181, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/items/coin/coin.lua:8: Variable 'C_LISTEN_COLLISION_PLAYER_ONLY' is not defined.
    Entity 182, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 183, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 184, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 185, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 186, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 187, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 188, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 189, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 190, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 191, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 192, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 193, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 194, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 195, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 196, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 197, function OnInit
    Warning: Box2d doesn't like collision line 1 in worlds/RT_Elevation/maps/TreeWorld Palette/big_tree.dat. (Bad edges, try adjusting the angles a bit.)
    Initting interface
    Setting up overlays..
    Loaded map System Palette at tick 0.  4 non-empty chunks, size is 1 by 1.
    Found player in Main Inside at X:1905.00 Y: -25.50
    Loaded map Main Inside at tick 0.  50 non-empty chunks, size is 9 by 5.
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: ...orlds/RT_Elevation/script/char/crayon/ent_player.lua:31: Variable 'C_LISTEN_COLLISION_STATIC_ALL' is not defined.
    Entity 232, function OnPostInit
    Restarting engine...
    Saving map header Main - (9 chunks to look at, map size 7 by 4)
    Saving map header Main Inside - (51 chunks to look at, map size 9 by 5)
    
    Initializing GameLogic...
    Clanlib Sound System Initialized
    Mounting world path worlds/RT_Elevation.
    Novashell V0.29 and Lua 5.13 Initted.
    Initting world
    Initting intro menu
    Loaded map Intro at tick 3357.  16 non-empty chunks, size is 3 by 3.
    Resetting!
    Clearing all maps
    User profile path now C:\Users\rbsch\Desktop\Novashell/profiles/Player/RT_Elevation
    Running our custom tree world game start code.
    Setting game defaults
    Map Inside not found
    Loaded map Main at tick 0.  9 non-empty chunks, size is 7 by 4.
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 260, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 261, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 262, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 263, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 264, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 265, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 266, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 267, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 268, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 269, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 270, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 271, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 272, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 273, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 274, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 275, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 276, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 277, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 278, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 279, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 280, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 281, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 282, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 283, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 284, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 285, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 286, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 287, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 288, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 289, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 290, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 291, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 292, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 293, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 294, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 295, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 296, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 297, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 298, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 299, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 300, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 301, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 302, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 303, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 304, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/items/coin/coin.lua:8: Variable 'C_LISTEN_COLLISION_PLAYER_ONLY' is not defined.
    Entity 305, function OnInit
    Initting coins..
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/items/coin/coin.lua:8: Variable 'C_LISTEN_COLLISION_PLAYER_ONLY' is not defined.
    Entity 306, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/items/coin/coin.lua:8: Variable 'C_LISTEN_COLLISION_PLAYER_ONLY' is not defined.
    Entity 307, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/items/coin/coin.lua:8: Variable 'C_LISTEN_COLLISION_PLAYER_ONLY' is not defined.
    Entity 308, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/items/coin/coin.lua:8: Variable 'C_LISTEN_COLLISION_PLAYER_ONLY' is not defined.
    Entity 309, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/items/coin/coin.lua:8: Variable 'C_LISTEN_COLLISION_PLAYER_ONLY' is not defined.
    Entity 310, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/items/coin/coin.lua:8: Variable 'C_LISTEN_COLLISION_PLAYER_ONLY' is not defined.
    Entity 311, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 312, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 313, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 314, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 315, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 316, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 317, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 318, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 319, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 320, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 321, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 322, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 323, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 324, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 325, function OnInit
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: worlds/RT_Elevation/script/static/ent_brick.lua:7: attempt to call method 'SetMass' (a nil value)
    Entity 326, function OnInit
    Warning: Box2d doesn't like collision line 1 in worlds/RT_Elevation/maps/TreeWorld Palette/big_tree.dat. (Bad edges, try adjusting the angles a bit.)
    Initting interface
    Setting up overlays..
    Loaded map System Palette at tick 0.  4 non-empty chunks, size is 1 by 1.
    Found player in Main Inside at X:1905.00 Y: -25.50
    Loaded map Main Inside at tick 0.  50 non-empty chunks, size is 9 by 5.
    ---------------- Lua Error! Stack Dump ----------------
    
    -1: ...orlds/RT_Elevation/script/char/crayon/ent_player.lua:31: Variable 'C_LISTEN_COLLISION_STATIC_ALL' is not defined.
    Entity 361, function OnPostInit
    Looks like possibly the PLAYER_ONLY collision type is no longer included in the build?

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,385

    Default

    Hey Pleng, unfortunately you're going to basically have to re-do everything having to do with collision in script, I decided to do a few major changes when I made the change to Box2D physics last month.

    The advantages are instead of that sort of wacky PLAYER/STATIC system, there is only one callback for everything and a flexible way of controlling which entities will cause collisions that is much more powerful than the old one.

    To bring your project up to speed you would need to do everything on this checklist:

    * Physics engine replaced with Box2D.. this caused a lot of internal changes as old hacks and uglyness was removed, you will need to
    update any older projects by doing the following:

    Collision system changed, the new one allows more control over who collides with what. Internally it uses a 16 bit bitmask, this is
    hidden from the user to simply thing as called a "Category", and things can be/listen to multiple categories.

    Also, "Collision groups" are supported that can override categories. More in the docs. on those.

    - SetListenCollision and SetCollision removed, must now use SetCollisionCategory/SetCollisionListenCategory and SetCategory to control things
    - OnCollision callback changed, is now: nil function OnCollision(vPosition, vVelocity, vNormal, depth, materialID, entity, state)
    - OnStaticCollision removed, OnCollision handles all callbacks
    - You can no longer negate a collision by returning false, OnCollision does not check the return value any more.


    - Tweak speeds and forces, it's close but a bit different
    - A good gravity setting for a side scroller map is now 20, not 0.004 like it was
    - For platformers, change the line type to "Ice no bounce" in most cases, this way there is no friction when jumping and rubbing against things
    - Use the in-game visual profile editor to center entities correctly, they may be offset
    - Use the collision editor and move vertices, they may be offset incorrectly
    - Remove all SetMass() statements, replace SetMass(0) with SetDensity(0) (to make an object immovable)
    - Adding things to the watch list is less important, things will automatically be updated even offscreen if they are moving. So things like an apple
    falling no longer need to be worried about, their AI will automatically shut down when they come to a stop offscreen.
    - Entity initializing is now more robust and happens all at once instead of needing to wait a frame for the PostInit(), it just makes things
    more logical I think
    All the examples have been updated, so it might help to check out latest TreeWorld to cut and paste from, and also the docs have been updated.

    What is still missing is I need to fix the Dragon Eggs tutorial to use the updated collision scripting methods...

    If you have problems which the conversion let me know and I can take a look at the game!

    BTW, new version is available...
    Seth A. Robinson
    Robinson Technologies

  3. #3
    Lesser Wizard
    Join Date
    Mar 2008
    Posts
    124

    Default

    Hi Seth, thanks for your response

    So by this...

    - OnCollision callback changed, is now: nil function OnCollision(vPosition, vVelocity, vNormal, depth, materialID, entity, state)
    Do I now need to check collisions for each entity separately? ie each barrel would need to check against each other sprite he collides with (in this game, that would only be the player anyway)?

  4. #4
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,385

    Default

    Do I now need to check collisions for each entity separately? ie each barrel would need to check against each other sprite he collides with (in this game, that would only be the player anyway)?
    By default, anything with collision is going to automatically collide with each other.

    If need to 'know' when collisions happen, (this causes your callback to get hit when there is a collision) you need to understand about collision categories.

    By default, all your entities are a member of collision category "C_CATEGORY_ENTITY", and all tilepics are a member of "C_CATEGORY_TILEPIC".

    (check base/script/system/setup_constants.lua for a list of predefined categories, there are up to 16)

    Now, by default, an entity will collide with ALL 16 categories - if you want him to NOT hit other entities, but only tilepics, you would set this in his script:
    Code:
    this:SetCollisionCategory(C_CATEGORY_TILEPIC, false);
    This turns off hitting entities.

    For your player, put this in his script:

    Code:
    this:SetCategory(C_CATEGORY_PLAYER);
    Next, because you want your barrels to ONLY hit the player, you should set this in their script:

    Code:
    this:SetCollisionCategories(C_CATEGORIES_NONE); //shortcut to turn off all 16 at once, so this entity will not hit anything at all
    
    this:SetCollisionCategory(C_CATEGORY_PLAYER, true);
    Now, the barrels will only hit the player. But that isn't enough, you also want to "know" about it, right?

    So set up the barrel script to 'listen':

    Code:
    this:SetCollisionListenCategory(C_CATEGORY_PLAYER, true); //by default, nothing is 'listened' to, so now the player will be
    What does it mean to listen? That just means our callback will get hit, so add the callback, it has to look like this:

    Code:
    function OnCollision(vPosition, vVelocity, vNormal, depth, materialID, entity, state)
       LogMsg("We just got hit by the player!  His name is",entity:GetName());
       entity:RunFunction("OnDie"); //or whatever
    end
    So, it might seem a little tricky at first, but overall dispensing with the weird dual callbacks I had for entities and statics should simply things. (If you're listening to statics, the same callback is hit, entity would just be set to NULL)

    In retrospect, maybe it would make more sense to setup your collision the opposite, ie, have barrels marked as C_CATEGORY_ENEMY, and setup the player to listen to them to detect the hits. Either way is ok!

    Btw, I'm going to modify the dragon eggs tutorial to illustrate setting up collision step by step when I get a chance, should help.
    Seth A. Robinson
    Robinson Technologies

  5. #5
    Lesser Wizard
    Join Date
    Mar 2008
    Posts
    124

    Default

    Ok thanks for that Seth. Seems to make sense! I'll try and give it a go on the weekend.

Similar Threads

  1. Vista: "game.exe has stopped working"
    By Pleng in forum Novashell Game Creation System
    Replies: 5
    Last Post: 02-15-2009, 02:09 AM
  2. vista bug and collision request
    By attle in forum Novashell Game Creation System
    Replies: 2
    Last Post: 06-19-2008, 03:27 AM
  3. Vista, ATI and ClanLIb (oh my)
    By madmark in forum Official ClanLib SDK Forums
    Replies: 6
    Last Post: 03-01-2008, 08:24 PM
  4. Won't compile under Vista
    By Scutter in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 08-10-2007, 11:59 PM
  5. Novashell - Vista Compatible?
    By whisperstorm in forum Novashell Game Creation System
    Replies: 1
    Last Post: 02-01-2007, 12:41 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •