Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Taimon
« on: January 13, 2010, 11:44:25 AM »

No big deal and thanks for checking.
Posted by: devSin
« on: January 12, 2010, 02:26:52 PM »

Looks good. Sorry it took so much back and forth.
Posted by: Taimon
« on: January 12, 2010, 09:10:56 AM »

Okay dev, new merge from today's version. Could you take a quick look at the diff?
Posted by: Sam.
« on: January 11, 2010, 05:13:48 PM »

Well, I reinstalled my JDK and NetBeans and now it's compiling just fine.  Still don't know what the problem was.  Thanks for the suggestions anyway.
Posted by: ScuD
« on: January 09, 2010, 10:46:35 PM »

An idea - you may have JRE libraries in your classpath instead of JDK. Not sure about that though.
Posted by: devSin
« on: January 09, 2010, 10:06:14 PM »

Were you able to compile previous versions? Did you install the JDK, and is it up to date?

It looks like you're missing some Java components (that compile isn't even getting off the ground)?
Posted by: ScuD
« on: January 09, 2010, 09:45:53 PM »

Sorry, I'm using Ant to build the code. I've never used NetBeans.
Posted by: Sam.
« on: January 09, 2010, 09:12:29 PM »

I'm experiencing the same error with the version linked to a few posts back.  I am compiling with NetBeans and am setting the Main Class to "infinity.NearInfinity".  Have I forgotten something important since the last time I compiled successfully?  This is my setup:
Quote
Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_17; Java HotSpot(TM) Client VM 14.3-b01
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\User\.netbeans\6.8
Posted by: ScuD
« on: January 09, 2010, 07:19:58 PM »

I've no such error building NI from the latest sources.
Posted by: devSin
« on: January 09, 2010, 10:48:54 AM »

That shouldn't happen! I don't think there were even any changes I made that would get you failing way up there.

Try using the source archive I linked to a few posts back; tested to work under Vista with Java 1.6.0b17 (you can also download it pre-compiled by replacing 'Src.zip' in the URL with 'Beta.jar' when downloading, for the time being).
Posted by: Sam.
« on: January 09, 2010, 09:23:56 AM »

When I try to run the latest commit on GitHub (cf1f67b) after compiling, I get the following error message in the command console:
Code: [Select]
Exception in thread "main" java.lang.NullPointerException
        at javax.swing.ImageIcon.<init>(ImageIcon.java:167)
        at infinity.icon.Icons.getIcon(Icons.java:19)
        at infinity.NearInfinity.<init>(NearInfinity.java:124)
        at infinity.NearInfinity.main(NearInfinity.java:117)

A debug with NetBeans returns:
Code: [Select]
debug:
Have no FileObject for C:\Program Files\Java\jdk1.6.0_17\jre\lib\sunrsasign.jar
Have no FileObject for C:\Program Files\Java\jdk1.6.0_17\jre\classes
Exception in thread "main" java.lang.NullPointerException
        at javax.swing.ImageIcon.<init>(ImageIcon.java:167)
        at infinity.icon.Icons.getIcon(Icons.java:19)
        at infinity.NearInfinity.<init>(NearInfinity.java:124)
        at infinity.NearInfinity.main(NearInfinity.java:117)
Java Result: 1
BUILD SUCCESSFUL (total time: 4 seconds)

It seems to build but it doesn't run.
Posted by: devSin
« on: January 08, 2010, 11:52:24 AM »

Nah, it just looks like an old archive (those are really changes that were there yesterday or the day before).

I updated it late last night (PST) with the last of the changes, and the current push is just missing most of it (and still has those nasty (De)Compiler comments).

Sometimes it can get a little tough to follow since I still diff to Jon's "official" b19 sources and toss out unnecessary differences, which leads to code changing in strange ways (appearance-wise). But it's not like he or Fred are coming back; I probably shouldn't bother anymore, but what can you do.

EDIT: OK, probably final edits up (23:40). You should probably toss the projectile arrays; I'm not really happy with them being there (nuking the one in EffectFactory is still fine tho because it had no real use). I think the best thing would be to try and extend ProRef to actually do something useful (or a more generic 'IdsRef or this static Bitmap' class), but I don't have the strength. Wouldn't make a difference in BG2 anyhow. There are still some dumb bugs in IWD scripting, but it's not my fault and I don't care anymore, (There might be another bug in the history code, but it's better than it was.)

Not really any good changes this year, I guess, but at least it got some small structure updates for the less worthy IE games.
Posted by: Taimon
« on: January 08, 2010, 11:41:03 AM »

That actually kind of looks like an old version. :( There are some changes in there that were temporary (and embarrassing); is it from a fresh download (maybe there's a stale cache somewhere along the way)?
Should have been from yesterday or the day before. Just checked that the gamePath.size() thing was there and thought it was good.

I'll check out the new version.

/Edit:
Can you give me an indication of what exactly is considered "old"? Maybe something went wrong when I cherry-picked the merge-diff.
Posted by: devSin
« on: January 08, 2010, 10:26:18 AM »

That actually kind of looks like an old version. :( There are some changes in there that were temporary (and embarrassing); is it from a fresh download (maybe there's a stale cache somewhere along the way)?

I should probably just give up and git, but I'm hoping this can be the last push for most the year. I'm well and truly beginning to hate the one-size-fits-all code again, which means I stop messing with it for a year or so now. ;-)

EDIT: For any concerned, fresh sources are usually here.
Posted by: Taimon
« on: January 08, 2010, 08:20:11 AM »

Blindly applied. I'm sure you know what you were doing. :)