|
Post by hugheth on Nov 6, 2011 6:43:18 GMT -8
Hello all! Thought I might start a new thread as the old one was getting a bit full.. github.com/Hugheth/dizgruntledThe source for DizGruntled is now available on GitHub to fork and play around with. DizGruntled is written in Java, and rather fast too so are likely to be plenty of bugs and an awful lot of speed-ups that could make the code better. This source is really targeted at proficient programmers who are keen to further develop the DizGruntled engine, as we're not at a point where little tweaks and addons can be sensibly be added to the source. (Though feel free to do this!) I hope that the more adept at programming who are interested in future Gruntz games see the advantage of working in a community on a single project, even if you have different eventual aims for a Gruntz remake. Documentation is fairly bare; I suggest this thread becomes a discussion of the source to clarify how the works or how it should be made better. I'm unlikely to have a lot of time to develop DizGruntled in my free time, though will make much more of an effort to if other people want to contribute. If you have any issues getting the code compiling and running, I'm more than happy to help out here! Most likely problems that will occur are the natives in lib/natives not loading properly. Simple solution is to move them into the distribution folder i.e. the same folder as the jar you produce on export. That is all Hugh
|
|
GooRoo
Administrator
Owner Administrator
I luv Gruntz!
Posts: 7,425
Display Name: GooRoo
|
Post by GooRoo on Nov 6, 2011 8:17:07 GMT -8
I was a programmer for 38 yearz, on what was called "big iron" ... mainframez. I have programmed in at least a dozen languagez, but Java is not one of them. How does one 'compile' Java? What program(z) would I need to acquire to learn the language?
|
|
BattlezM
Moderator
Is my hat too big?
Posts: 1,308
|
Post by BattlezM on Nov 6, 2011 11:05:25 GMT -8
Personally I'd recommend Eclipse Classic, which is what I used through my senior year in high school. Compiling should be straight forward, and it even helps by suggesting code phrases based on what's being typed, and color codes/error marks and etc as you go along. www.eclipse.org/downloads/
|
|
GooRoo
Administrator
Owner Administrator
I luv Gruntz!
Posts: 7,425
Display Name: GooRoo
|
Post by GooRoo on Nov 6, 2011 18:35:51 GMT -8
Personally I'd recommend Eclipse Classic, which is what I used through my senior year in high school. Compiling should be straight forward, and it even helps by suggesting code phrases based on what's being typed, and color codes/error marks and etc as you go along. www.eclipse.org/downloads/I am downloading the larger version as I am typing. But the page said I need a JRE, so I will look for that next ... same page is probably a link. At this point the price will have to be 'free'. If I really get involved, I will donate to the cause later. Edit: Well, it turnz out that I already have the recommended Java version for my computer; 6.29 ... so I guess I am ready to start learning.
|
|
Tomalla
Designer
General Modder
Posts: 525
|
Post by Tomalla on Nov 7, 2011 8:25:52 GMT -8
I had taken few attempts at learning Java once but I got discouraged pretty fast. I've spent too much time working with C++ to try something new. Perhaps I'm just lazy, since there's a lot of similarities between both languages.
@gooroo: I recommend Eclipse as well. IIRC it is free and has a lot of helpful features ( like aforementioned code suggesting system and so on ). The only thing you're gonna need is Java Development Kit (JDK) which consists of application(s) capable of compiling the *.java files straight into the *.class files which are ready to be executed ( and therefore are the essential part of Java programming ). That's what you would find any good tutorial anyways. If JDK is not included with Eclipse, which is very likely, you'll have to download the latest version from the Java website. Cheers
|
|
|
Post by hugheth on Nov 7, 2011 19:41:34 GMT -8
I used eclipse for the Dizgruntled project I think it is already set up to be importable into eclipse.
If you download the Java Standard Edition from the eclipse website this should get everything you need to compile and write to Dizgruntled.
I suggest you try out downloading eclipse - as I said before I have a pretty good idea of all the issues that you may face in compiling so if you have any problems however small post them here and I can help!
|
|
GooRoo
Administrator
Owner Administrator
I luv Gruntz!
Posts: 7,425
Display Name: GooRoo
|
Post by GooRoo on Nov 7, 2011 19:47:11 GMT -8
I used eclipse for the Dizgruntled project I think it is already set up to be importable into eclipse. If you download the Java Standard Edition from the eclipse website this should get everything you need to compile and write to Dizgruntled. I suggest you try out downloading eclipse - as I said before I have a pretty good idea of all the issues that you may face in compiling so if you have any problems however small post them here and I can help! I have already downloaded the 212Mb version of Eclipse, but had a problem with extracting from the ZIPped file ... nothing happened! But I determined that I also already have the correct, most current, version of Java Runtime Environment, so am probably ready to go, as soon as I manage to extract Eclipse. Of course, I will begin by attempting to compile disGruntled to begin my learning experience.
|
|
|
Post by hugheth on Nov 12, 2011 4:36:02 GMT -8
Oh horrible :/ If I'm not mistaken I used Java Runtime Version 1.6, and I think the latest is 1.7, so if you have problems with the native files this may be the case.
I'll briefly run through what you need to do:
- Use git or get msysgit for windows - Navigate to your empty Dizgruntled directory and type in git clone git://github.com/Hugheth/dizgruntled.git to download the repository - Open up eclipse and click import project, or create new project from existing project and select your Dizgruntled directory - Add slick.jar, lwjgl.jar, jogg....jar and jorbis....jar to the build path (in the context menu for the files in the Project Explorer or in the create project wizard) - Go to project properties and go to java build path and expand the lwjgl.jar item and set the native library location to /lib/native - Run the project! The main class is GruntzGame if I'm not mistaken!
|
|
GooRoo
Administrator
Owner Administrator
I luv Gruntz!
Posts: 7,425
Display Name: GooRoo
|
Post by GooRoo on Nov 12, 2011 7:46:02 GMT -8
I should clarify that it is Eclipse that I cannot extract! I have not even tried to do anything with disGruntled yet ... made no sense until I have Eclipse available.
|
|
|
Post by hugheth on Nov 13, 2011 4:18:12 GMT -8
Oh dear! I was hoping you might have solved that problem First thing first you don't want the 212MB version - it will probably work, but it's for enterprise Java and has lots of unnecessary tiddly bits. Try downloading this one: www.eclipse.org/downloads/packages/eclipse-ide-java-developers/indigosr1If the zip didn't open properly either you downloaded the wrong version (i.e. 64 bit not 32 bit - check you know which system you are using), it didn't download properly in which case try downloading it again! Or your zip program is messed up in which case try: www.rarlab.com/download.htm
|
|
GooRoo
Administrator
Owner Administrator
I luv Gruntz!
Posts: 7,425
Display Name: GooRoo
|
Post by GooRoo on Nov 13, 2011 9:39:21 GMT -8
I downloaded the 32-bit 212Mb Windows version, and use MegaZIPper for my extractionz. I will try the smaller version, to see if that will extract properly. Failing that, I will try your archiver tool next.
|
|
|
Post by hugheth on Nov 15, 2011 4:46:46 GMT -8
Keep me updated!
|
|