Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(-1)

game crashes eery time i start by clicking on the campfire, crash report below:


  . Starting log.

  . Writing to log.txt

  . Successfully loaded data.sgr.

  . Build The Sun :: by PUNKCAKE Delicieux

  . Found 36 files: code/settings.lua, assets/music/02.mp3, assets/music/01_B.mp3, assets/music/01_A.mp3, assets/sfx/chop.wav, assets/music/percu.mp3, assets/music/day.mp3, code/utility.lua, code/grid.lua, assets/stretch.shader, code/time.lua, ../../libs/autosnaps.lua, assets/gfx8.png, ../../libs/remy_systems.lua, assets/sfx/click_off.wav, assets/gfx12.png, code/game.lua, ../../libs/gifkey.lua, code/pet.lua, assets/sfx/done.wav, assets/sfx/plop.wav, assets/sfx/treefall.wav, assets/zoom.shader, code/object.lua, main, code/palette.lua, code/particle.lua, code/thing.lua, assets/Sweetspot.ttf, assets/sfx/cancel.wav, assets/sfx/complete.wav, assets/sfx/stone.wav, assets/sfx/fire.wav, assets/sfx/click.wav, assets/sfx/build.wav, assets/sfx/jump.wav

  . Initializing SUGAR v0.0.6h.

  . C:\Users\Usuario\Desktop\itch.io games\build_the_sun_windows\build_the_sun.exe

  . Running from: C:\Users\Usuario\Desktop\itch.io games\build_the_sun_windows\

  . Running on Windows.

  . Using SDL 2.30.7

  . Using LuaJIT 2.1.1692716794

  . Using Lua 5.1.4

  . OpenGL initialized.

  . Created new memory chunk '_sugar_'.

  . FreeType library was initialized.

  . Using FreeType 2.12.1

  . Relocating chunk '_sugar_' for resizing.

  . Resized '_sugar_' to 0x01F4 bytes to fit new 'default_font' req.

  . Correctly requested 'default_font' 0x01F3 bytes at 0x01 in chunk '_sugar_'.

  . The 95 glyphs font 'default' was created.

  . GFX system initialized.

  . Time system initialized.

  . Input system initialized.

  . Successfully opened audio device

  . Could not get device name.

  . Driver: wasapi

  . Frequency: 44100

  . Format: 0x8010

  . Channels: 2

  . Samples: 2048

  . Audio system initialized.

  . All systems initialized.

  . 

  . Running...

  . Loading main

  . Loading ../../libs/gifkey.lua

  . Loading ../../libs/remy_systems.lua

  . Defined 0 buttons for player 0.

  . Loading ../../libs/autosnaps.lua

  . Loading ../../libs/remy_systems.lua

  . Loading code/utility.lua

  . Loading code/settings.lua

  . Loading settings.txt

 !! Could not open file 'settings.txt': No such file or directory'.

  . Successfully wrote 'settings.txt'.

  . Successfully wrote 'settings.txt'.

  . Relocating chunk '_sugar_' for resizing.

  . Resized '_sugar_' to 0x01FC34 bytes to fit new 'Build The Sun_screen_srf' req.

  . Correctly requested 'Build The Sun_screen_srf' 0x01FA40 bytes at 0x01F4 in chunk '_sugar_'.

  . Loading assets/zoom.shader

  . Created OpenGL window with version 3.2.

  . Got Core profile as requested.

  . Hardware rendering is on.

 !! Couldn't find 'overlayData' sampler in shader.

 !! Couldn't find 'overlaySize' uniform in shader.

  . Created new window 'Build The Sun'.

  . Relocating chunk '_sugar_' for resizing.

  . Resized '_sugar_' to 0x020534 bytes to fit new '__boot_sheet___srf' req.

  . Correctly requested '__boot_sheet___srf' 0x0900 bytes at 0x01FC34 in chunk '_sugar_'.

  . Created the 96 x 24 surface '__boot_sheet__'.

 !! Couldn't find 'time' uniform in shader.

 !! Couldn't find 'overlayCKey' uniform in shader.

  . Deleted surface '__boot_sheet__'.

  . Loading assets/gfx8.png

  . Loading assets/Sweetspot.ttf

  . Correctly requested 'main_font' 0x0200 bytes at 0x01FC34 in chunk '_sugar_'.

  . The 96 glyphs font 'main' was loaded from assets/Sweetspot.ttf

  . Loading assets/gfx8.png

  . Relocating chunk '_sugar_' for resizing.

  . Resized '_sugar_' to 0x023E34 bytes to fit new '8_srf' req.

  . Correctly requested '8_srf' 0x4000 bytes at 0x01FE34 in chunk '_sugar_'.

  . Created the 128 x 128 surface '8'.

  . Correctly loaded 'assets/gfx8.png' into '8' surface.

  . Loading assets/gfx12.png

  . Relocating chunk '_sugar_' for resizing.

  . Resized '_sugar_' to 0x02CE34 bytes to fit new '12_srf' req.

  . Correctly requested '12_srf' 0x9000 bytes at 0x023E34 in chunk '_sugar_'.

  . Created the 192 x 192 surface '12'.

  . Correctly loaded 'assets/gfx12.png' into '12' surface.

  . Loading assets/sfx/complete.wav

  . Loaded sfx 'complete' from file 'assets/sfx/complete.wav'

  . Loading assets/sfx/done.wav

  . Loaded sfx 'done' from file 'assets/sfx/done.wav'

  . Loading assets/sfx/stone.wav

  . Loaded sfx 'stone' from file 'assets/sfx/stone.wav'

  . Loading assets/sfx/fire.wav

  . Loaded sfx 'fire' from file 'assets/sfx/fire.wav'

  . Loading assets/sfx/build.wav

  . Loaded sfx 'build' from file 'assets/sfx/build.wav'

  . Loading assets/sfx/treefall.wav

  . Loaded sfx 'treefall' from file 'assets/sfx/treefall.wav'

  . Loading assets/sfx/chop.wav

  . Loaded sfx 'chop' from file 'assets/sfx/chop.wav'

  . Loading assets/sfx/jump.wav

  . Loaded sfx 'jump' from file 'assets/sfx/jump.wav'

  . Loading assets/sfx/cancel.wav

  . Loaded sfx 'cancel' from file 'assets/sfx/cancel.wav'

  . Loading assets/sfx/click.wav

  . Loaded sfx 'click' from file 'assets/sfx/click.wav'

  . Loading assets/sfx/click_off.wav

  . Loaded sfx 'click_off' from file 'assets/sfx/click_off.wav'

  . Loading assets/sfx/plop.wav

  . Loaded sfx 'plop' from file 'assets/sfx/plop.wav'

  . Loading assets/music/02.mp3

  . Loaded music '02' from file 'assets/music/02.mp3'

  . Loading assets/music/percu.mp3

  . Loaded music 'percu' from file 'assets/music/percu.mp3'

  . Loading assets/music/day.mp3

  . Loaded music 'day' from file 'assets/music/day.mp3'

  . Loading assets/music/01_A.mp3

  . Loaded music '01_A' from file 'assets/music/01_A.mp3'

  . Loading assets/music/01_B.mp3

  . Loaded music '01_B' from file 'assets/music/01_B.mp3'

  . Defined 18 buttons for player 0.

  . Loading code/game.lua

  . Loading code/palette.lua

  . Loading code/time.lua

  . Loading code/grid.lua

  . Loading code/object.lua

  . Loading code/pet.lua

  . Loading code/thing.lua

  . Loading code/particle.lua

  . Resized '_sugar_' to 0x04C874 bytes to fit new 'game_srf' req.

  . Correctly requested 'game_srf' 0x01FA40 bytes at 0x02CE34 in chunk '_sugar_'.

  . Created the 480 x 270 surface 'game'.

  . Resized '_sugar_' to 0x06C2B4 bytes to fit new 'shadows_srf' req.

  . Correctly requested 'shadows_srf' 0x01FA40 bytes at 0x04C874 in chunk '_sugar_'.

  . Created the 480 x 270 surface 'shadows'.

  . Relocating chunk '_sugar_' for resizing.

  . Resized '_sugar_' to 0x08BCF4 bytes to fit new 'light_srf' req.

  . Correctly requested 'light_srf' 0x01FA40 bytes at 0x06C2B4 in chunk '_sugar_'.

  . Created the 480 x 270 surface 'light'.

  . Relocating chunk '_sugar_' for resizing.

  . Resized '_sugar_' to 0x0AB734 bytes to fit new 'dark_srf' req.

  . Correctly requested 'dark_srf' 0x01FA40 bytes at 0x08BCF4 in chunk '_sugar_'.

  . Created the 480 x 270 surface 'dark'.

  . Relocating chunk '_sugar_' for resizing.

  . Resized '_sugar_' to 0x0BB734 bytes to fit new 'ball_srf' req.

  . Correctly requested 'ball_srf' 0x010000 bytes at 0x0AB734 in chunk '_sugar_'.

  . Created the 256 x 256 surface 'ball'.

  . Saved srfshot at ball.png

  . Relocating chunk '_sugar_' for resizing.

  . Resized '_sugar_' to 0x0CB734 bytes to fit new 'gen_srf' req.

  . Correctly requested 'gen_srf' 0x010000 bytes at 0x0BB734 in chunk '_sugar_'.

  . Created the 256 x 256 surface 'gen'.

  . Duplicating log to C:\Users\Usuario\Desktop\itch.io games\build_the_sun_windows\crash_log_000.txt

  . Quitting required.

ERR [string "code/game.lua"]:501: attempt to perform arithmetic on field 'xa' (a nil value)

Stack traceback: 

[string "code/game.lua"]:141: in function <[string "code/game.lua"]:137>

[string "code/game.lua"]:501: in function 'update_camera'

  . main loop exit

  . 

  . Initiating shutdown.

  . Deleted font 'main'.

  . Deleted font 'default'.

  . Deleting window 'Build The Sun'.

(1 edit) (+2)

It's not just you, I'm getting the same thing with the same crash log.

Edit: OK, I should have read the rest of the instructions about this jam version:

"⚠️Hold click on the very first fire nest, or the game will crash!⚠️"

After holding click, the game worked fine for me.

thanks! kinda weird but it works now!