radian-software / TerrariaClone

🔥 An incomprehensible hellscape of spaghetti code.
MIT License
1.79k stars 136 forks source link

Could not load graphics? #11

Closed KevinTyrrell closed 6 years ago

KevinTyrrell commented 6 years ago

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

Seems the project does not know about the textures folder?

lucasnpereira commented 6 years ago

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

KevinTyrrell commented 6 years ago

No luck with that either:

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

lucasnpereira commented 6 years ago

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

jchama commented 6 years ago

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

KevinTyrrell commented 6 years ago

@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 commented 6 years ago

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

raxod502 commented 6 years ago

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 https://github.com/BusyByte/TerraFrame/pull/1, but note that I'm not personally involved in the development of either.

sirtawast commented 6 years ago

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

moonpatroller commented 6 years ago

That would be nice. :|

raxod502 commented 6 years ago

Done in https://github.com/raxod502/TerrariaClone/commit/3a792f8cbd39ef4e139516fbdefec3dd66d1eb36.

jmarucha commented 4 years ago

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

raxod502 commented 4 years ago

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