Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Problem with Kevs 3DS loader in newer xith build..  (Read 762 times)
0 Members and 1 Guest are viewing this topic.
Offline SpuTTer

Senior Member


Medals: 1


Lazy Middle Class Intellectual


« Posted 2004-10-22 00:40:19 »

I now am getting the same exception error, even when I try to run Kevs loader test. Anyone else having problems?

1  
2  
3  
4  
5  
6  
7  
8  
9  
Exception in thread "main" java.lang.IncompatibleClassChangeError
        at org.newdawn.xith3d.threeds.SclTrackProcessor.process(SclTrackProcesso
r.java:85)
        at org.newdawn.xith3d.threeds.TDSLoader.processChunk(TDSLoader.java:130)

        at org.newdawn.xith3d.threeds.TDSLoader.load(TDSLoader.java:97)
        at org.newdawn.xith3d.threeds.TDSLoader.load(TDSLoader.java:88)
        at TDSTest.<init>(TDSTest.java:85)
        at TDSTest.main(TDSTest.java:152)


Sacramento Volleyball
"Whitty phrase goes here."
Offline SpuTTer

Senior Member


Medals: 1


Lazy Middle Class Intellectual


« Reply #1 - Posted 2004-10-22 00:44:54 »

Here are my 2 posts on another topic until I moved them here when I figured out they were off topic on the other post...

POST 1------------------------------------

Weird, I decided to move my game to the new Xith codebase today and what do I find....

My old code:

character is a BranchGroup
model is a TDSModel

1  
character = (BranchGroup) model.sharedCopy(model);


seems to be returning an error now when I try to use it...

1  
2  
3  
4  
5  
java.lang.IncompatibleClassChangeError
      at org.newdawn.xith3d.threeds.SclTrackProcessor.process(SclTrackProcessor.java:85)
      at org.newdawn.xith3d.threeds.TDSLoader.processChunk(TDSLoader.java:132)
      at org.newdawn.xith3d.threeds.TDSLoader.load(TDSLoader.java:99)
      at org.newdawn.xith3d.threeds.TDSLoader.load(TDSLoader.java:90)


Maybe related???


It also appears that I should now be able to simply use:

1  
character = (BranchGroup) model.sharedCopy();


which is a good thing...


Appears related to the same problem this guy was having here, so its probably just something that changed in the new codebase that I didnt change...

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=xith3d;action=display;num=1071038323;start=165#172


POST 2 -------------------------------------------


Doesnt appear related to the sharedgroup problem.... It's having an issue with my model loading with Kevs 3DS loader... Here is my ModelStore class which I use to pull the models..

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
      private static HashMap modelMap = new HashMap();

     
      public static TDSModel getModel(String name) {

            TDSModel model = (TDSModel) modelMap.get(name);
           
            if (model == null) {
                  try {
                        model = new TDSLoader().load("resources/models/"+name+".3ds",true);
                       
                        modelMap.put(name,model);
                  } catch (Exception e) {
                        e.printStackTrace();
                        System.out.println("Failed to load: "+name);
                        System.exit(0);
                  }
            }
           
            return model;
      }


Let me know if I should move this to another thread now that I know its not based on the sharedCopy issue.

Sacramento Volleyball
"Whitty phrase goes here."
Online kevglass

JGO Kernel


Medals: 118
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #2 - Posted 2004-10-22 16:00:22 »

I've updated code and ensured that it builds and runs against the latest Xith3D download (not tried CVS version).

Its in the normal place. Hopefully it'll work for you guys too.

Thanks for the useful information, it made the fixing process simple.

Kev

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline SpuTTer

Senior Member


Medals: 1


Lazy Middle Class Intellectual


« Reply #3 - Posted 2004-10-22 17:12:08 »

Working perfectly now!!! Thanks Kev!

Sacramento Volleyball
"Whitty phrase goes here."
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

ctomni231 (36 views)
2014-07-18 06:55:21

Zero Volt (34 views)
2014-07-17 23:47:54

danieldean (27 views)
2014-07-17 23:41:23

MustardPeter (30 views)
2014-07-16 23:30:00

Cero (44 views)
2014-07-16 00:42:17

Riven (46 views)
2014-07-14 18:02:53

OpenGLShaders (35 views)
2014-07-14 16:23:47

Riven (35 views)
2014-07-14 11:51:35

quew8 (31 views)
2014-07-13 13:57:52

SHC (67 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!