Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    setTerrainPoint causes a crash if you give it an object handle

    Bug Reporting (FUZE 4 Nintendo Switch)
    setterrainpoint bug
    1
    1
    244
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • spt games
      spt games last edited by spt games

      I found this bug by trying to update the terrain object instead of the terrain itself. This bug is quite easy to reproduce.

      Create a terrain and store the handle in a variable. Now use placeObject to place the terrain and store the object handle in a variable.

      Now use setTerrainPoint, but don't provide the terrain handle, but give the handle you got from placeObject. Now run. Crash.

      If you provide an arbitrary number or string then FUZE correctly stops the program and shows a helpful error.

      Example:

      ter = createTerrain(64,1)
      obj = placeObject(ter, {0,0,0},{1,1,1})
      
      // This works:
      setTerrainPoint(ter, 32,32,10,green)
      
      // This causes FUZE to crash:
      setTerrainPoint(obj, 32,32,10,green)
      
      // This correctly tells you int is invalid:
      setTerrainPoint(2, 32,32,10,green)
      
      
      1 Reply Last reply Reply Quote 2
      • First post
        Last post