Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

MewnBase

Space-cat crafting/survival game with base building. · By Cairn4

Changing Resolution Crash

A topic by Mark Alan created Feb 28, 2017 Views: 832 Replies: 7
Viewing posts 1 to 6

If you try to change the video resolution from the menu instead of inside the game, it crashes every time.

Developer

Hey Brentnor,

But it works if you change the resolution in-game? Weeeeird. Are you running the latest version? (at least v0.33), on Windows I'm assuming?

Try this out if you can:

  1. Create a shortcut to MewnBase.exe (doesn't matter where)
  2. Right click shortcut -> Properties
  3. add "-c --console" to the end of the Target field so that it reads
    MewnBase.exe -c --console
    
  4. Run the game via the shortcut, it'll open up a little console window behind the main game.
  5. Try changing the resolutions again as you described - if it crashes, it should still print out some errors at the bottom of the console window, paste some of that here if you could.

Thanks!

Hi Cairn4,

I'm not able to follow your instructions since it keeps telling me the Target is not valid.

Mark

Developer

Hey, to clarify, the Target field in the shortcut properties should be the full path to the exe...

Example: c:\Users\Steve\folders\MewnBase\MewnBase.exe -c --console

My target has the full path, but it has quotes around it. I'm using Windows 7 Home 64 edition.

Any advice how I can get the console to work?

Okay, I pasted the console after the quotes and got it to work. I could not find a way to copy and paste it so I took a snapshot and uploaded it here: http://oi67.tinypic.com/33escn6.jpg

Developer (2 edits)

Ah! so close :D

Unfortunately the actual cause is a few lines above that probably (before all the "at ..." lines) - should be a line that says what type of Exception occurred - probably starts with something like "Exception in thread..."

Thanks for your patience with me here, I do really wanna figure out why it's crashing here for you so I can get it fixed.

The following is everything:


Loading JVM runtime library ...

Passing VM options ...

# -Xmx1G

Creating Java VM ...

Passing command line arguments ...

Loading JAR file ...

Invoking static com.cairn4.moonbase.desktop.DesktopLauncher.main() function ...

MewnBase: SettingsLoader: validating settings file

Compiling shaders...

MewnBase: Audio: setting volumes to 1.0, 1.0

MewnBase: UpdateCheck: Game is up to date!

MewnBase: System Language: en_US

MewnBase: Setting language to: en

menuStack: 1

menuStack: 2

Exception in thread "LWJGL Application" java.lang.RuntimeException: No OpenGL co

ntext found in the current thread.

at org.lwjgl.opengl.GLContext.getCapabilities(GLContext.java:124)

at org.lwjgl.opengl.GL20.glCreateShader(GL20.java:219)

at com.badlogic.gdx.backends.lwjgl.LwjglGL20.glCreateShader(LwjglGL20.ja

va:201)

at com.badlogic.gdx.graphics.glutils.ShaderProgram.loadShader(ShaderProg

ram.java:207)

at com.badlogic.gdx.graphics.glutils.ShaderProgram.compileShaders(Shader

Program.java:186)

at com.badlogic.gdx.graphics.glutils.ShaderProgram.<init>(ShaderProgram.

java:169)

at com.badlogic.gdx.graphics.g2d.SpriteBatch.createDefaultShader(SpriteB

atch.java:160)

at com.badlogic.gdx.graphics.g2d.SpriteBatch.<init>(SpriteBatch.java:124

)

at com.badlogic.gdx.graphics.g2d.SpriteBatch.<init>(SpriteBatch.java:78)

at com.badlogic.gdx.scenes.scene2d.Stage.<init>(Stage.java:100)

at com.cairn4.moonbase.ui.Menu.<init>(Menu.java:63)

at com.cairn4.moonbase.ui.Popup.<init>(Popup.java:35)

at com.cairn4.moonbase.ui.ConfirmSettingsPopup.<init>(ConfirmSettingsPop

up.java:28)

at com.cairn4.moonbase.ui.ResolutionPopup$1.clicked(ResolutionPopup.java

:140)

at com.badlogic.gdx.scenes.scene2d.utils.ClickListener.touchUp(ClickList

ener.java:89)

at com.badlogic.gdx.scenes.scene2d.InputListener.handle(InputListener.ja

va:58)

at com.badlogic.gdx.scenes.scene2d.Stage.touchUp(Stage.java:353)

at com.badlogic.gdx.InputMultiplexer.touchUp(InputMultiplexer.java:96)

at com.badlogic.gdx.backends.lwjgl.LwjglInput.processEvents(LwjglInput.j

ava:332)

at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplic

ation.java:217)

at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplicati

on.java:126)

Destroyed Java VM ...

Press ENTER key to exit.^A^A