jsokoban-gamedevel Mailing List for JSokoban
Brought to you by:
texx
You can subscribe to this list here.
2002 |
Jan
|
Feb
(6) |
Mar
(2) |
Apr
(3) |
May
(2) |
Jun
(4) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: Gustavo F. B. <gf...@bb...> - 2003-11-01 18:10:46
|
Matthias: I've seen the changes that you did to the PropertyConstants File, and i've seen that you used URLUtils. In my opinion that change has two drawbacks: - For the non JWS version you need the JWS library, or it won't compile ( i used the JNLP jar lib that is much smaller) - The .getClass.getRosource method resolves the path using the Classpath, and File uses the path of java.exe, so could produce some problems, if it not launched from a batch file I will upload a version of MainFrame with a menu for changing the LookAndFeel in a couple of minutes Regrets Federico -------------------------------------------------------------------- Gustavo F. Bett PGP Fingerprint: C4BD CD59 8F03 47FD 9A5A 1ECD 5DB4 34AB C6B5 C315 |
From: Matthias J. <mat...@te...> - 2002-07-22 17:31:28
|
hi i have found a api for java witch make it easy to open an webbrowser direct from java :-) http://browserlauncher.sourceforge.net/ have a nice day matthias |
From: Matthias J. <mat...@te...> - 2002-07-01 11:13:42
|
hi Here now some new stuff for the game. 1. I will implement a help system for our game, where we describe the game rules and also some howto's for level, images and so on 2. I want change the Levelset file type from many files to one zip-file This need changes in the Levelset class and a change of the LoadLevelset operation in the ui. Weshould change it so that you can install a new levelset in the level dircetory, then the levelset is added in the menu. Also you can remove the levelset with this new gui. This help us to add new levelsets to the application. also we can so put new levelsets on our homepage and the user can install them easy. 3. Add a support for the other look and feel of java 4. add mouse support for the game ( move the player with the mouse ) 5. redesign the level finished message ( own class ) with support for showing the moves, pushes and the time for the future. Also support for showing the levelname the level number and the levelsetname. 6. A disign installer ( game graphics ) like the levelset installer 7. Show Levelsetname, levelnumber in the game panel What do you think about this?? Matthias -- --------------------------------------------------- Matthias Jell HP: http://www.texx.org Email: mat...@te... -- |
From: Matthias J. <mat...@te...> - 2002-06-10 14:29:35
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hi I wanna fix the bug with the Licence in the about box. but i have a problem. when i create a simple swing application with a scrollpane and a textarea and set the License as text the focus is in the first line. and the source the jbuilder generates is simular to our code. do you have idears? matthias -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE9BLhRuuPdO4FDQKQRAkIcAJ9uZfH0Ag+e+nUQRodq5ucKZMqsYACfSYEW 2TA8QXvdU0JoZXt6daQH6Uo= =50DL -----END PGP SIGNATURE----- |
From: Matthias J. <mat...@te...> - 2002-06-06 11:51:16
|
hi can you also remove the broken pictures and add it as binary. i lost the original version from the pictures. also you can release the directories we don't longer use in the cvs. thx matthais -- --------------------------------------------------- Matthias Jell HP: http://www.texx.org Email: mat...@te... -- |
From: Matthias J. <mat...@te...> - 2002-06-06 11:30:53
|
hi you can commit your code. please assign another bug in the bug tracker and patch it. also test the program :-) and enter the bugs thx matthias -- --------------------------------------------------- Matthias Jell HP: http://www.texx.org Email: mat...@te... -- |
From: Gustavo F. B. <gf...@bb...> - 2002-06-02 17:06:37
|
Matthias: I was looking at the loadlevel bug, and it was a issue on the restart of the level. (if you restart the level, then it will say that the level is completed on the first move). I attach the files with the changes, if you agree with the changes i will commit them. What do you think if we release the empty directories on the CVS tree? Greetings Fede -------------------------------------------------------------------- Gustavo F. Bett PGP Fingerprint: C4BD CD59 8F03 47FD 9A5A 1ECD 5DB4 34AB C6B5 C315 |
From: Gustavo F. B. <gf...@bb...> - 2002-05-31 17:09:26
|
Matthias: The error that causes the exception, is the splash image corrupted in the CVS repository. That's because the file isn't defined as a binary file. I don't know if that could be changed, or if the file must be deleted and added again. I will work on the loadlevel bug Greetings Fede -------------------------------------------------------------------- Gustavo F. Bett PGP Fingerprint: C4BD CD59 8F03 47FD 9A5A 1ECD 5DB4 34AB C6B5 C315 |
From: Matthias J. <mat...@te...> - 2002-05-20 18:22:35
|
hi you can add your source in the cvs. thx matthias -- ----------------------------------------------- Matthias Jell E-Mail: mat...@te... Homepage: http://www.texx.org ----------------------------------------------- |
From: Matthias J. <m....@gm...> - 2002-04-22 17:31:08
|
hi 1. webstart: what do you think if we implement all features for you implement in the ws version that work also in the standard version.. and for the other thinks we create a own branch in the cvs. at which version you want to start with the ws version??? is 0.2beta2 possible you think? 2. next release 0.2beta2 it is possible to you to check in all your changes until the 30. April ?? then we shoult test the application. 1 week is enought i think. and report all bug in the bug system at soureforge and after that we have 2 weeks to fix the bugs we found. 3. i have added you to the project so now can use the cvs and commit your canges ... nice day matthias Gustavo Federico Bett wrote: >Matthias: > >I'm working with jws, and we have a problem... > >An application that uses jws should have all their files packed in jar >files (which is not our case). There are two kinds of environment for >a application. A untrusted environment (like the applet sandbox), that >restrict access to files, and to the network; and a trusted >environment, that does not have that limitations, but requires all the >files signed (and better if is from a trusted signer). > >I'm trying to make the application work in a untrusted environment, >the problem is how to load a file. >Below i quote a text that explains a possible solution (is from the >site of BlueJ http://www.bluej.org) >Tell me what do you think. > >Greetings > Federico > >PS: Did you receive my previous e-mail? (the one with a couple of bugs >in the current CVS tree) if you don't received it i send it again. > >>Here is a common problem: You want to access a file on disk (maybe an image, maybe a text file, or anything else for that matter), and you need to specify the name. You write some code similar to this: >> >>Image image = new ImageIcon("myImage.gif").getImage(); >> >>or >> >>FileInputStream stream = new FileInputStream("myFile.txt"); >> >>Then you discover that it doesn't work. (Or, as some people wrote to us, it "works when I run it from xxx, but not from BlueJ".) >> >>So why is that? >> >>Most people put their image or text file into the project directory, and then want it to be found. The problem is that this depends on the system's "current directory". This is not a BlueJ-specific problem, but a general Java problem. Only, you may discover it for the first time when you use BlueJ. >> >>The current directory is the directory you used when you start Java. When you use BlueJ, the current directory is the directory where you started BlueJ. If you started BlueJ from a DOS window, it is that current directory of that DOS window. If you started BlueJ, say, with a shortcut from the desktop, then it is the desktop. >> >>This means that the above code fragments will probably not find the files when you run them in BlueJ. On the other hand, if you run Java from the DOS window, as below, it may work: >> >C:\>> cd myProject >C:\myProject\>> java MyClass > >>So is BlueJ wrong? No, because you should never assume that you know what the current directory is when your code runs. Consider the following way to start your Java class through the DOS window, which is an equally valid way to start your application: >> >C:\>> java myProject\MyClass > >>This command will also start your class, but your code trying to load the file will fail, because now the current directory is different. >> >>In other words: Writing code that relies on the current directory is usually a bad idea, and it is prone to break at any moment. >> >>That leaves the question: what should I do instead? The answer is: Use the "getResource" method from java.lang.ClassLoader. This method will find a file anywhere in the current classpath. And the BlueJ project directory is always in the classpath, so it will always find a file there, no matter what the current directory is. >> >>Here is a code example using this method to load an image: >> >>public Image getImage(String fileName) { >> URL imageURL = getClass().getClassLoader().getResource(fileName); >> if(imageURL == null) >> return null; >> return new ImageIcon(imageURL).getImage(); >>} >> >>Here is a code example reading a text file using getResource: >> >>public InputStream openFile(String fileName) >> throws IOException >>{ >> URL url = getClass().getClassLoader().getResource(fileName); >> if(url == null) >> throw new IOException("File not found: " + fileName); >> return url.openStream(); >>} >> >>The "getClass()" method is defined in class Object, so it is available in every object. Class URL is in the package java.net. Using this code, your program should work independently of how it was started. >> > > >-------------------------------------------------------------------- > > Gustavo F. Bett > > PGP Fingerprint: C4BD CD59 8F03 47FD 9A5A 1ECD 5DB4 34AB C6B5 C315 > > -- ----------------------------------------------- Matthias Jell E-Mail: m....@gm... Homepage: http://www.geocities.com/texx_1at ----------------------------------------------- -- ----------------------------------------------- Matthias Jell E-Mail: m....@gm... Homepage: http://www.geocities.com/texx_1at ----------------------------------------------- |
From: Matthias J. <m....@gm...> - 2002-04-15 18:07:49
|
hi sorry.. i had a computer crash *MicroS...* and lost all my data.... so can you please send me your last mails .... :) i will add you at sourceforge to the project. Then you can check in your own code changes :-) you done a very good work and i would like to thank you and hope it will continue :) So please also add a feature u like to have in the freature request and bugs you find in the bug tracker. :-) thanks Matthias Ps.: do you know anybody playing this game :-) because i don't except me. And i would like it to have a little comment from other users :-) Gustavo Federico Bett wrote: >texx: > >I was able to make jsokoban run under java web start. Attached is a zip >file with the source, and the html and the jnlp files.(To run it add >jdom.jar and xerces.jar to the dist folder) > >I do a LOT of changes to the source, in special, to the properties, >images, level and levelset load code. > >I still need to rewrite the loadlevel and loadlevelset functions (JWS >uses another class for opening files). > >The code that i send you works in both versions of jsoko (jws and >non-jws), but the loadlevel part will need some special code. > >I send you two emails before of this, if you don't read them, tell me, >and i will send it again. > >Greetings > Federico > >-------------------------------------------------------------------- > > Gustavo F. Bett > > PGP Fingerprint: C4BD CD59 8F03 47FD 9A5A 1ECD 5DB4 34AB C6B5 C315 > -- ----------------------------------------------- Matthias Jell E-Mail: m....@gm... Homepage: http://www.geocities.com/texx_1at ----------------------------------------------- |
From: Gustavo F. B. <gf...@fu...> - 2002-04-08 03:08:44
|
texx: I was able to make jsokoban run under java web start. Attached is a zip file with the source, and the html and the jnlp files.(To run it add jdom.jar and xerces.jar to the dist folder) I do a LOT of changes to the source, in special, to the properties, images, level and levelset load code. I still need to rewrite the loadlevel and loadlevelset functions (JWS uses another class for opening files). The code that i send you works in both versions of jsoko (jws and non-jws), but the loadlevel part will need some special code. I send you two emails before of this, if you don't read them, tell me, and i will send it again. Greetings Federico -------------------------------------------------------------------- Gustavo F. Bett PGP Fingerprint: C4BD CD59 8F03 47FD 9A5A 1ECD 5DB4 34AB C6B5 C315 |
From: Matthias J. <M....@gm...> - 2002-03-21 09:38:14
|
hi thanks that you take a look at webstart. i have include your files in my code and now i test it. on sunday i think i will commit it in the cvs with a few other changes ( about box,...) I think a redesign of the web page would be great. with a integration of the news system and the forum from sourceforge. also an idear for the weppage is a hiscore list. :-) maybe you know a webdesigner :-) also i release a new version on sunday ( jsokoba0.2beta2 ). i have add a few tasks to the tasklist of the game at sourceforge. and if you find a bug in the game please add it to the buglist :-) bye matthias -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net |
From: Matthias J. <M....@gm...> - 2002-02-27 15:43:13
|
hi. sorry i write so late back. (got a lot of work) i think thats a good solution for this problem. i'm working now on some problems with the about box ( license panel ). to the package: i also want to put it in the ui.util package but i forgot it before i check it in *g* i found another thing we should do. if you load a big level and the window of jsokoban is to small you don't get scroll bars. that must be fixed. ( i add it to the bug list today or tomorrow ) bye matthias > Hi: > > I'm trying to do the load level stuff, and i found a possible problem. > > In GamePanel.java , in the methods jbinit, nextlevel, and lastlevel you do > > this: > > m_lLevel.setFilePath(PropertyConstants.Level_Path); > > this forces the level to be in the default level directory. > Then, if i want to load a level in other directory, this overrides the > directory that i set. > The solution that i think is to set de default path in the Level > constructor, so it could be overrided. > What do you think? > > bye! > > > PS: I saw that you added to the CVS repository the files that i send. > I think that the file LevelFileFilter.java should be in the package > jsokoban.ui.util, not in the base.util , because it is only used with the > JFileChooser dialog > > > > > > _______________________________________________ > Jsokoban-gamedevel mailing list > Jso...@li... > https://lists.sourceforge.net/lists/listinfo/jsokoban-gamedevel > -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net |
From: <gf...@bb...> - 2002-02-27 14:29:00
|
Hi: I'm trying to do the load level stuff, and i found a possible problem. In GamePanel.java , in the methods jbinit, nextlevel, and lastlevel you do this: m_lLevel.setFilePath(PropertyConstants.Level_Path); this forces the level to be in the default level directory. Then, if i want to load a level in other directory, this overrides the directory that i set. The solution that i think is to set de default path in the Level constructor, so it could be overrided. What do you think? bye! PS: I saw that you added to the CVS repository the files that i send. I think that the file LevelFileFilter.java should be in the package jsokoban.ui.util, not in the base.util , because it is only used with the JFileChooser dialog |
From: Matthias J. <M....@gm...> - 2002-02-22 11:22:44
|
I think it would we good tomake the program compatible to the these levelsets. So a user can download one and use it. in the moment he must write a xml file and put every level in a own level file. I think nobody would do that. The only think i don't know in the moment is if we schould "kill" the xml-levelset and change the program that we only use the text-levelset. What do you think? matthias > Hi: > > I have seen that kind of levelsets in other programs, and i have a > question. > Do you want make a compatible file or a proprietary one? > > Changing the subject, the code seems ok to me. > The only thing that i look is in XMLReaderWriter. If I try to open a > levelset using an absolute path (in windows), jdom throws a FileNotFound > Exception, > so, i change a little the parse method and the problems dissapear. > > public static Document parse(String sFilename) throws > org.jdom.JDOMException > { > SAXBuilder saxbuilder = new SAXBuilder(); > saxbuilder.setValidation(XML_VALIDATION); > return saxbuilder.build(new File(sFilename)); > } > > bye > > Federico > -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net |
From: Gustavo F. B. <gf...@bb...> - 2002-02-22 10:50:10
|
Hi: I have seen that kind of levelsets in other programs, and i have a = question.=20 Do you want make a compatible file or a proprietary one? Changing the subject, the code seems ok to me. The only thing that i look is in XMLReaderWriter. If I try to open a = levelset using an absolute path (in windows), jdom throws a FileNotFound = Exception,=20 so, i change a little the parse method and the problems dissapear. public static Document parse(String sFilename) throws = org.jdom.JDOMException { SAXBuilder saxbuilder =3D new SAXBuilder(); saxbuilder.setValidation(XML_VALIDATION); return saxbuilder.build(new File(sFilename)); } bye=20 Federico =20 |
From: Matthias J. <M....@gm...> - 2002-02-21 08:18:29
|
hi the textlevelset: this is a textfile which include a set of level in on file. the most sokoban programs i found in the net use a sot of this file, so it might be a good idear to include this in this program. the problem is that many different "versions" exists of this levelsset filetype. thats the reason why i use xml files. example see www.sokomind.de code: what do you think about the existig code and package structure etc.? bye matthias -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net |