Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load graphics? #11

Closed
KevinTyrrell opened this issue Oct 12, 2017 · 12 comments
Closed

Could not load graphics? #11

KevinTyrrell opened this issue Oct 12, 2017 · 12 comments

Comments

@KevinTyrrell
Copy link

https://i.imgur.com/vK4cg3s.png

Seems the project does not know about the textures folder?

@lucasnpereira
Copy link

It seems you have to run it from the textures folder as the working folder.

@KevinTyrrell
Copy link
Author

No luck with that either:

https://i.imgur.com/OCNDYYi.png

@lucasnpereira
Copy link

you have to point your class path to the folder were the .class files are

@jchama
Copy link

jchama commented Oct 12, 2017

Just to keep up with all this mess move all the texture subfolders to the src folder :)

@KevinTyrrell
Copy link
Author

@jchama That worked. Thanks.

@lucasnpereira How is that done? Usually I use an IDE to manage my project structure so I'm not familiar with it.

@KevinTyrrell
Copy link
Author

Not moving the character is normal right? Character just drops from the sky and after that, no user input is read?

@raxod502
Copy link
Member

Check up on the man-pages of javac and java; it's quite enlightening to learn how the tools work without an IDE. You can compile and run with:

$ mkdir -p out
$ javac -d out src/*.java
$ java -cp out:textures TerrariaClone

For fixing errors, see #12 and BusyByte#1, but note that I'm not personally involved in the development of either.

@sirtawast
Copy link

@raxod502 maybe add these compile instructions to readme.md 🤔

@moonpatroller
Copy link

That would be nice. :|

@raxod502
Copy link
Member

Done in 3a792f8.

@jmarucha
Copy link

compile instructions don't work on windows, w/a is copying textures to out and running java TerrariaClone
this is a great game

@raxod502
Copy link
Member

Maybe Windows uses a different delimiter for the classpath. I wouldn't put it past them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

7 participants