Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsShowcase → A little applet I'm writing...
A little applet I'm writing...
2004-03-27, 8:35 AM #1
[http://blargh.mine.nu/test/169/6.jpg]
Got the original C++ code I used in an old version; gonna base the new code on that.

I just hope it can work on other computers, since mine is the only one that the classes that are created seem to work on (might be a setting that's not set right or something). All the others I'e tested on have had the error "Couldn't find blah.class" or "Couldn't load blah.class" or something similar.

Anyway, whatcha think of the gui setup? Any suggestions/criticism?

[edit] Update: Got the "decompiler" part working. Now to start on the "compiler" code. Shouldn't be too hard.
Oh yeah, I noticed the error on the middle column where it skips from 0x800 to 0x10000. I fixed it.

[edit] Update: Finished the "compiler" code.

btw, any JK editors think this will be a helpful applet? I know for a fact it'll make my flag editing a lot easier. [http://forums.massassi.net/html/smile.gif]

Oooh! OOOH! Anyone wanna make a logo for the html for this applet?

------------------
I am Darth Slaw.
The Dark Lord of the Sith,
And part of the Nightfire mod team

[This message has been edited by Darth Slaw (edited March 27, 2004).]
May the mass times acceleration be with you.
2004-03-27, 10:51 AM #2
Looks great. [http://forums.massassi.net/html/smile.gif]


------------------
Snail racing: (500 posts per line)
------@%
SnailIracing:n(500tpostshpereline)pants
-----------------------------@%
2004-03-27, 11:14 AM #3
That would really help me, I'm not good with adding hex together, keep it up!

For the logo, I whipped this up in a few minutes with GIMP (thank you Script-Fu>Logos), it's not all that good, but I figured I'd give it a shot.

[http://blargh.mine.nu/test/222/1.jpg]

------------------
*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "S-TROOPER WUZ 'ERE!!!"


[This message has been edited by Stormtrooper (edited March 27, 2004).]
2004-03-27, 11:42 AM #4
Thats great and all, but that has been a feature of Cogpad since version 2. Moreover, Cogpad gives descriptions of each flag... [http://forums.massassi.net/html/wink.gif]

------------------
The future is here, and all bets are off.
And when the moment is right, I'm gonna fly a kite.
2004-03-28, 11:53 AM #5
<3 bitwise operators

I sincerly hope you are using bitwise operators. [http://forums.massassi.net/html/tongue.gif]

------------------
The Mega-ZZTer's Gaming Haven!

Bot Pack JO | Let's Roll JK | Bespin JA | Patch Enforcer JK/MotS | Pac-Man JK

2004-03-28, 1:39 PM #6
Quote:
<font face="Verdana, Arial" size="2">I sincerly hope you are using bitwise operators. [http://forums.massassi.net/html/tongue.gif]</font>

Nope. Wrote my own code; no bitwise operators in it [http://forums.massassi.net/html/biggrin.gif] / [http://forums.massassi.net/html/frown.gif] (don't know which I should be showing). Either way, it works. Now I just gotta figure out how to convert hex to dec.

Code:
Code for flag checking -- by Darth Slaw:
    int n = 29;
    for (int curFlag = 0x20000000 ; curFlag >= 0x1 ; curFlag = curFlag / 2)
    {
        if ((flagtext - curFlag) >= 0)
        {
            checkboxes [n].setSelected (true);
            flagtext = flagtext - curFlag;
        }
        else
        {
            checkboxes [n].setSelected (false);
        }
        n--;
    }


------------------
Bond, Power, CA, The Force, Saber, IC, Epic, Oily Mexican Food, BG, /\ |> /\ /\/\, Sentences.
Now you know where I've been.
May the mass times acceleration be with you.
2004-03-28, 2:20 PM #7
As for that class problem, in Java, any classes a program uses needs to be included with that applet, and in the same operating directory. There's a couple exceptions of course: String, system...

I'm just guessing that that might be it.

------------------
_ _________________ _
Wolf Moon
Cast Your Spell On Me
Beware
The Woods At Night
The Wolf Has Come
_ _ _____________ _ _
Wolf Moon
Cast Your Spell On Me
Beware
The Woods At Night
The Wolf Has Come
2004-03-28, 4:37 PM #8
Quote:
<font face="Verdana, Arial" size="2">Originally posted by GBK:
Thats great and all, but that has been a feature of Cogpad since version 2. Moreover, Cogpad gives descriptions of each flag... [http://forums.massassi.net/html/wink.gif]

</font>


Why do you have to go and bust his chops like that when he's creating tools that could spark a little more interest in JK editing?

It's not like our community isn't redundant already... we have two level editors, a handful of cog writing programs, file container extractors, 3do viewers, etc.

People develop preferenes, and some programs are more user friendly... so variety is key to keeping the community alive. Posting crap like that only insults someone's hard work, and can leave a bitter taste in his/her mouth. Why do it?

------------------
Current Maps | Inclusion | Restless Endeavor

There is a thin line between insanity and stupidity. I am that line.
Current Maps | Newest Map
2004-03-28, 5:57 PM #9
Possibly Sniperwolf, but the one I use at school has them and it doesn't work there. Might be a browser setting wrong; I'll check tomorrow.

------------------
Bond, Power, CA, The Force, Saber, IC, Epic, Oily Mexican Food, BG, /\ |> /\ /\/\, Sentences.
Now you know where I've been.
May the mass times acceleration be with you.
2004-03-28, 6:20 PM #10
The other thing that came to mind with that SS, is that it has to do with the VM...
Have the other tests been using the Sun Java Runtime Environment? (I'm assuming you were using this because of the icon) Or have they been using the Microsoft Java VM? (Has more flaws than others)
Could be the difference, but I don't know. I'm just guessing possible things from the little I see. Debug tends to be a pain in the *** anytime. [http://forums.massassi.net/html/smile.gif]

So good luck.

As for GBK's comment... shameless plug, lol...

------------------
_ _________________ _
Wolf Moon
Cast Your Spell On Me
Beware
The Woods At Night
The Wolf Has Come
_ _ _____________ _ _
Wolf Moon
Cast Your Spell On Me
Beware
The Woods At Night
The Wolf Has Come
2004-03-28, 7:42 PM #11
Quote:
<font face="Verdana, Arial" size="2">Originally posted by LKOH_SniperWolf:
...As for GBK's comment... shameless plug, lol...</font>


Aye, it was. [http://forums.massassi.net/html/frown.gif]

------------------
The future is here, and all bets are off.
And when the moment is right, I'm gonna fly a kite.
2004-03-29, 12:39 AM #12
Hey nice looking applet Darth Slaw [http://forums.massassi.net/html/smile.gif] - good to see somebody going nuts over Java [http://forums.massassi.net/html/biggrin.gif]

As for GBK's comment about not telling you what the flags are, why not implement setToolTipText("insert String description here"); [http://forums.massassi.net/html/smile.gif] That way you can "equal" GBK's cogpad [http://forums.massassi.net/html/wink.gif]

Oh - and sniperwolf speaks the truth about your issue with "Class Not Found Exception" - equally, in your HTML code, make sure you've got the correct project "codebase" attribute for the "applet" tag [http://forums.massassi.net/html/smile.gif]

Hope this helps - other than that, looking good - this reminds me actually about a little Java program for another area of JK that I'm working on that should make editing life easier (don't worry - it's not the same area [http://forums.massassi.net/html/wink.gif]). Anyways, keep up the good work [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
"lucky_jackpot is the smily god..." - gothicX

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2004-03-29, 10:37 AM #13
That screenie was taken when the applet was run thru the compiler (Ready to Program). It always runs then, regardless of the computer.
But I do have some sort of Sun Java thing on my comp (the comp that can load the classes). None of the other comps have the Sun Java thing.

How would I fix this?

------------------
Bond, Power, CA, The Force, Saber, IC, Epic, Oily Mexican Food, BG, /\ |> /\ /\/\, Sentences.
Now you know where I've been.

[This message has been edited by Darth Slaw (edited March 29, 2004).]
May the mass times acceleration be with you.
2004-03-29, 12:31 PM #14
If it is the VM, it's probably not actually an error, just a flaw in Microsoft's VM. Sun is the one who developed Java, I believe, so theirs would be the correct one. However, most just run through IE, which runs its own Java VM. (I'm assuming you know what a VM is...) The differences could cause problems. I'm not actually sure of the specific flaws with Microsoft's. You'd probably have to look that up. A simple way to test if this is the problem, would be see if you can run it through IE.

------------------
_ _________________ _
Wolf Moon
Cast Your Spell On Me
Beware
The Woods At Night
The Wolf Has Come
_ _ _____________ _ _
Wolf Moon
Cast Your Spell On Me
Beware
The Woods At Night
The Wolf Has Come
2004-03-30, 10:18 AM #15
VM = Virtual Machine - ? - Is that sorta like an emulator typa thing?

Well, I'm already running the classes in Win2k Pro's IE, but they don't work in Netscape Comm. (that I have on my Win95 comp), nor do they work in the Win98 and Win2k Home Ed. IE's (other classes can run in these three browsers, but not mine).

I found this page when I googled for "java vm". Should I put a link to this page in my html so ppl can d/l the SUN VM?
http://java-virtual-machine.net/download.html

------------------
Bond, Power, CA, The Force, Saber, IC, Epic, Oily Mexican Food, BG, /\ |> /\ /\/\, Sentences.
Now you know where I've been.
May the mass times acceleration be with you.
2004-03-30, 11:31 AM #16
Java code is never really compiled. It's compiled to what is called byte code. It's a special form of Java code, and has no OS specific encodings. To decode, and run this byte code, you need a virtual machine. This interprets the byte code as though it's a virtual computer, interpreting it to your particular computer. Sun's Java VM is the more accurate one I believe. Microsoft's is a flawed attempt to match it (I believe I read they based on Sun's source). It probably has as many, if not more errors as IE. So, you may want to put a link to the Sun one. That or figure out how to get it to work with all those IE's...

Sun's is the one that you really need to be compatible with anyways. The Microsoft VM won't be distributed after Sep. 30 this year.

------------------
_ _________________ _
Wolf Moon
Cast Your Spell On Me
Beware
The Woods At Night
The Wolf Has Come
_ _ _____________ _ _
Wolf Moon
Cast Your Spell On Me
Beware
The Woods At Night
The Wolf Has Come
2004-03-30, 12:15 PM #17
Didn't Microsoft have a "little legal entaglement" with Sun when they dropped the Java support from their Windows XP range distribution on the grounds that the "Java was not specifically part of the core essentials for Windows - it was just extra 'clutter'" - is it just me or do I sense a little irony? [http://forums.massassi.net/html/wink.gif] (I know this is more about Java support than the Java VM, but it's still useful information [http://forums.massassi.net/html/smile.gif] )

A few interesting articles (for those who are not aware of what I speak or -gosh- actually genuinely interested):

http://www.vnunet.com/News/601971
http://www.vnunet.com/News/1124059
http://www.silicon.com/management/itpro/0,39024675,39117250,00.htm

... and naturally, any of the off-shoots [http://forums.massassi.net/html/wink.gif]. One interesting comment especially for all you budding programmers is: "Gartner said demand for Java skills will exceed demand for C++ knowledge" - finally someone who thinks as I do [http://forums.massassi.net/html/wink.gif] [http://forums.massassi.net/html/biggrin.gif]

As far as I'm aware, XP:SP1 includes the Java SDK, so you can download it optionally - it just doesn't come as standard any more... [http://forums.massassi.net/html/frown.gif]

Anyways ... that's all your "Java History 101 Recap" over and done with now [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
"lucky_jackpot is the smily god..." - gothicX

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||

↑ Up to the top!