Log In
Name:
Pass:
Online Members (0)
No members are currently online.
Current Interguild Time:
Thu Mar 28 2024 1:25 pm
Member Chat Box  [click here to enlarge]
Recent Posts and Comments
ShareThis
« Blogs Index < Game Guides < HATPC Guides
« canadianstickdeath's Blog

This is something I should have made a long time ago. You know, back when I still made caves and it'd actually be useful to me. Anyway, I posted the link a little below, and I'd appreciate it if you all'd download it, play around with it, and tell me what you think. I don't want you guys to mention any potential new features just yet, I just want to know if you can find any bugs, or anything that doesn't function in the way that you would perhaps expect it to.

http://www.interguild.org/hatpc/cavemaker.zip (EDIT: You cannot trust this link to be remotely up-to-date.)
original link:
https://drive.google.com/file/d/1BNp_r4-qIIZ8QuNE1wRw6Vi9HT526aDL/view

Due to a forum bug, you'll probably have to copy that and paste it into your address bar.

To run that, you'll first have to extract that all into the same folder. If you can't extract zip files, download WinRAR: http://www.win-rar.com/download.html

You'll also need to make sure you have the latest version of Java: http://www.java.com

Inside, there's a file named cavemaker.bat, which you will double-click on the run the program. A cmd window will pop up and hang around with you the whole time as you use the cavemaker. Close it, and you close the cavemaker with it, so, just ignore it for now. If it comes up and then just goes away, then you (probably) have not, either, followed these steps properly, or you do not have the latest version of java on your computer. I'm working on a way to make it stand-alone, but for now this will suffice. Also, you can make a short-cut of the .bat file (right-click create shortcut, probably) and then you can paste that into wherever you'd like to be able to open the cavemaker from. Also note that, since this was coded in java, it should be able to run on systems other than Windows. I haven't seen fungus in a while, but if you see him, direct him here so I can get that straightened out. We might have to jump through a few hoops, but it should be able to run on his mac. Update: The cavemaker program is now in a jar file. You should be able to run it by double clicking but, if not, set java as the default program from opening jar files. The .bat is still there if needed.

If you have Windows 7, check out this short topic for help: http://www.interguild.org/members/forums/topic.php?id=5124

I'm going to attempt to list some of the changes that I've made from the Neopets version. Here's what I could think of, in no particular order:

Spoiler: ''List of Changes from the Neopets Version''

So yeah, try it out, and if there's anything that gets on your nerves, let me know I'll try making changes to it. I'll work on adding new features at an unspecified point in the future. For now, I'd like to ensure that this is working properly and there's nothing about it that people just hate to death.

Spoiler: ''Changes in Update 1''


Spoiler: ''Changes in Update 2''


Spoiler: ''Changes in Update 3''


Spoiler: ''Changes in Update 4''


Spoiler: ''Changes in Update 5''


Spoiler: ''Changes in Update 6''


Spoiler: ''Changes in Update 7''


Spoiler: ''Changes in Update 8''


Spoiler: ''Changes in Update 9 (Current Version)''
[?] Karma: 0
User Comments (549)
« Forum Index < The Hannah and the Pirate Caves Board
«Previous | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, . . . 20, 21, 22 | Next»

jellsprout
[?] Karma: 0 | Quote - Link
Sunday, January 18 2009, 12:31 pm EST
Lord of Sprout Tower

Karma: -2147482799
Posts: 6445
Gender: Male
pm | email
  
'Acceleron_3000' said:
but according to my research, there are different character counts. remember my crazy manual equations? 0.o I hope I didn't make a horrible mistake.


I think ", a ladder, takes up two characters instead of one. I think it has to do with the coding issues. But all the regular letters and numbers should take up only 1 character.
And remember, Accel, that every new line takes up 2 extra characters.


Spoiler:
Livio
[?] Karma: 0 | Quote - Link
Sunday, January 18 2009, 1:47 pm EST

Age: 31
Karma: 470
Posts: 9620
Gender: Male
Location: Arizona, USA
pm | email
but also remember that they don't count the first 4 lines when counting text.  and I took all of that into account. maybe you should do some tests of your own
jellsprout
[?] Karma: 0 | Quote - Link
Sunday, January 18 2009, 4:31 pm EST
Lord of Sprout Tower

Karma: -2147482799
Posts: 6445
Gender: Male
pm | email
I have done tests. They conclude that there is a minimum of exactly 256 characters, a maximum of exactly 8000, x's, #'s and d's all count as 1 character, and that each new line takes up two extra characters.


Spoiler:
canadianstickdeath
[?] Karma: 0 | Quote - Link
Sunday, January 18 2009, 9:29 pm EST

Age: 35
Karma: 350
Posts: 2990
Gender: Male
pm | email
"csd, could you please add the horizontal wheel scroll thing?"
Bug in Java. Can't be fixed through any conventional means. Not feasible.

"and I still want to press Enter in the level props window."
I'll see to it that this is included in the next update.

"but when you open CaveMaker, there's a default "new level" window, and if you open a level, instead of making a new one, then you should make it automatically close that "new level"."
I'll take a look into doing that. I doubt there's any "nice" way of getting this to work. I can do it though.

"Error while trying to undo adding a second starting point so that the old one will get replaced."
At first this sounded like something obvious that I overlooked, but now I can't figure how you got that error. I'm not getting it. I tried various combinations of undo/redo and allow/disallow multiples, and I could not get this error. Could you get it to occur again, this time, detail exactly every step you took to get it to happen.

"you said the "view map as text" is just hidden when not displayed?"
That's partly true. The window is always there, but the contents of said window are not generated until you click the view-text button. Now, I could still likely make a button to do this, but I'd honestly rather not. I just, don't like the idea of having a shortcut to replace your clipboard. You might accidentally copy over the top of something important... /rationalization.

I'm officially NOT going to make an attempt to get the exact minimum and maximum for the cave size. It's just a lot of work for something that I really couldn't care less about. The uploader is fickle, and I feel I've already made a reasonable effort to accommodate it.
Livio
[?] Karma: 0 | Quote - Link
Sunday, January 18 2009, 11:31 pm EST

Age: 31
Karma: 470
Posts: 9620
Gender: Male
Location: Arizona, USA
pm | email
what? new lines are TWO characters? I have to check this out. that's just a bad coding idea on Neopets' side...

csd, I actually can't undo at all. the whole feature is broken for me. I'm gonna try deleting everything I have and redownloading it and see if anything changes. redownloading Java didn't help...
Livio
[?] Karma: 0 | Quote - Link
Monday, January 19 2009, 12:38 am EST

Age: 31
Karma: 470
Posts: 9620
Gender: Male
Location: Arizona, USA
pm | email
ok I'm still getting the undo errors. It works fine in new files, but when I try it in files that I have opened, I get this:
Code:
H:\Livio\caves\cavemaker>java Cavemaker
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException:
 55
        at Cavemaker$Cave.undoChange(Cavemaker.java:2135)
        at Cavemaker$Cave.access$1600(Cavemaker.java:1109)
        at Cavemaker.actionPerformed(Cavemaker.java:748)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.AbstractButton.doClick(Unknown Source)
        at javax.swing.AbstractButton.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(Unknow
n Source)
        at javax.swing.SwingUtilities.notifyAction(Unknown Source)
        at javax.swing.JComponent.processKeyBinding(Unknown Source)
        at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Sour
ce)
        at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Sour
ce)
        at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(Unknown Sour
ce)
        at javax.swing.JMenuBar.processKeyBinding(Unknown Source)
        at javax.swing.KeyboardManager.fireBinding(Unknown Source)
        at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
        at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Sou
rce)
        at javax.swing.JComponent.processKeyBindings(Unknown Source)
        at javax.swing.JComponent.processKeyEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
        at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)

        at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Sour
ce)
        at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Sour
ce)
        at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
  
canadianstickdeath
[?] Karma: 0 | Quote - Link
Monday, January 19 2009, 12:42 am EST

Age: 35
Karma: 350
Posts: 2990
Gender: Male
pm | email
I know that, in order to get new lines in text files, I have to append two characters, a /r and a /n, so it makes sense that they would count for two.

Is there a possibility that you're using class files from multiple version of the cavemaker? It's probably best if you replace all the files everytime I release a new update, just to be safe. You know, I keep hearing from you that you can't undo at all, but nobody else appears to be getting this problem... I wonder what the cause could possibly be? I mean, if you've got everything downloaded properly, that error message would be a hard one to fake. I mean, array index out of bounds in undo()? If you get something like that, there's a very good chance undo will be broken until you open a new level. Do you get a message like that often? Could you please detail the exact steps you take? When, exactly, does the message appear in the cmd window? I wish I could recreate your problem.
canadianstickdeath
[?] Karma: 0 | Quote - Link
Monday, January 19 2009, 12:43 am EST

Age: 35
Karma: 350
Posts: 2990
Gender: Male
pm | email
You posted before me. Let me test that and get back to you.
canadianstickdeath
[?] Karma: 0 | Quote - Link
Monday, January 19 2009, 12:51 am EST

Age: 35
Karma: 350
Posts: 2990
Gender: Male
pm | email
Ack. Recent changes (alt+character) have greatly influenced the line numbers... It's making if very hard to find exactly which line went wrong... And I still haven't even managed to recreate this myself... Please detail every button click!
Livio
[?] Karma: 0 | Quote - Link
Thursday, January 22 2009, 9:21 pm EST

Age: 31
Karma: 470
Posts: 9620
Gender: Male
Location: Arizona, USA
pm | email
it just doesn't work for me csd. it's that simple.

I open cavemaker and there's the new level. I do changes to it, and undo works fine. But then I want to work on a level that I already made, so I open a level (i've tried different files too) and when i do a change, Undo does not work. I do it, and simply nothing happens. I don't remember if it still worked in that new level, but I don't think it did anymore. I think I already deleted everything and redownloaded it, but now I'm not sure if I did that. I'll do that again another time. but now I'm gonna judge the comp....
canadianstickdeath
[?] Karma: 0 | Quote - Link
Friday, January 23 2009, 2:35 pm EST

Age: 35
Karma: 350
Posts: 2990
Gender: Male
pm | email
Well... I just can't imagine what the problem is. Maybe, if you use something other than the default terrain type? MAYBE that would cause the problem. If it happens again, post the cave you are using.
Livio
[?] Karma: 0 | Quote - Link
Friday, January 23 2009, 6:45 pm EST

Age: 31
Karma: 470
Posts: 9620
Gender: Male
Location: Arizona, USA
pm | email
I deleted and redownloaded it again. It works on the new level as usual, but then I decided to try something. I changed the width of the level to 5. I undoed, and it worked! I redoed, and the undo system crashed and undos weren't working for me again no matter what I was trying to undo.

I close and reopen cavemaker. undo is working again. I open LDII (lol, why do I have this saved?). I make a big random chunk of steel crates across the cave. I press Undo. Nothing happens, and I have I have that big error message on the command prompt. The Undo system has crashed again.

but wait, instead of restarting cavemaker, I close the cave I had open, and I click on new level. Undo works again! If anything, I think you're forgetting to make it record a new undo-log for when you open levels. try that.
canadianstickdeath
[?] Karma: 0 | Quote - Link
Sunday, January 25 2009, 5:19 pm EST

Age: 35
Karma: 350
Posts: 2990
Gender: Male
pm | email
Ok, so I FINALLY got this bug to happen on my computer. I opened it up in mah IDE, it highlighted the line that caused the bug, and solution was readily apparent. I fixed it with a grand total of 3 characters. At the moment, undo will NOT WORK in ANY cave that is taller than it is wide. LOL!

I guess I'll upload an update tomorrow. You still won't be able to press enter in the level properties, but this needs to be fixed ASAP.

EDIT: Ok, so make that 6 characters. I just noticed that redo was basically copied from undo, so it had the same bug.
Isa
[?] Karma: 0 | Quote - Link
Sunday, January 25 2009, 5:20 pm EST
No. I'm an octopus.

Age: 31
Karma: 686
Posts: 7833
Gender: Male
Location: Uppsala, Sweden - GMT +1
pm | email
Lol, that's an awesome bug.

I cannot redo, by the way. When I try to, nothing happens.  
canadianstickdeath
[?] Karma: 0 | Quote - Link
Sunday, January 25 2009, 5:27 pm EST

Age: 35
Karma: 350
Posts: 2990
Gender: Male
pm | email
Is your cave taller than it is wide?
neofriendly
[?] Karma: 0 | Quote - Link
Sunday, January 25 2009, 5:33 pm EST
LOLZ LOLZ LOLZ

Karma: 2
Posts: 445
Gender: Male
pm | email
CSD, what exactly caused the glitch?
Isa
[?] Karma: 0 | Quote - Link
Sunday, January 25 2009, 5:36 pm EST
No. I'm an octopus.

Age: 31
Karma: 686
Posts: 7833
Gender: Male
Location: Uppsala, Sweden - GMT +1
pm | email
No, the dimensions are 70x50.
canadianstickdeath
[?] Karma: 0 | Quote - Link
Sunday, January 25 2009, 7:36 pm EST

Age: 35
Karma: 350
Posts: 2990
Gender: Male
pm | email
That glitch was caused by an inner loop that was using the height of the cave instead of the width as it's stopping point, so if you width is smaller than the height, you try to access tiles that don't exist, thus, an out-of-bounds exception.

Isa, I might as well ask some questions to make sure this isn't something stupid.
- Did you undo before trying to redo?
- Did you make a change since the last undo?
- Did the change you undid actually have an affect on the cave? I mean, if you, for example, undid a change that cleared and already cleared selection (like if you, say, double-clicked the clear selection button), then redo might not do anything.

If it's none of those, check around and see if you can figure out what might cause the problem. Try different combinations of anything you can think of. Anyway, when this occurs, is there an error in the cmd window? Paste for me, if so. If it only occurs in a specific cave, can I get a copy of the cave? Also, keep in mind that fixing the bug I fixed today might possibly fix this as well (who knows if there'd be any problems with caves with larger widths -- I couldn't find anything, but it could still be possible).
Isa
[?] Karma: 0 | Quote - Link
Sunday, January 25 2009, 7:42 pm EST
No. I'm an octopus.

Age: 31
Karma: 686
Posts: 7833
Gender: Male
Location: Uppsala, Sweden - GMT +1
pm | email
Okay...I open up the CaveMaker, add a piece of terrain and undo it.

To start off, every time I undo, the 'anchor point' or whatever it was called (basically, the tile selected) is moved to the top left corner. However, the undo effect is taking place.

I then ROFL, because I pressed Ctrl+Y all the time instead of Ctrl+Shift+Z. Lol, my bad.

But the undo thing is annoying. Nothing is written in the cmd prompt.
canadianstickdeath
[?] Karma: 0 | Quote - Link
Sunday, January 25 2009, 7:55 pm EST

Age: 35
Karma: 350
Posts: 2990
Gender: Male
pm | email
Lol, I'm always hitting ctrl+shift+z instead of ctrl+y.

That anchor point thing is partly because you can undo dimension changes. I could make code to put you somewhere nearby, I guess, but I didn't really wanna take the time to do it. But it's not only the anchor point, though, the scrollbars also reset, so I'd have to come up with some equation to keep you view on the same place, if possible. It'd be a headache, but it wouldn't be impossible to add.

So wait, you add terrain, undo, then redo, and it doesn't work? Just like that? OK, so that makes absolutely no sense. Just, wait until I upload the new version and we'll see if it continues to occur.
Isa
[?] Karma: 0 | Quote - Link
Sunday, January 25 2009, 7:57 pm EST
No. I'm an octopus.

Age: 31
Karma: 686
Posts: 7833
Gender: Male
Location: Uppsala, Sweden - GMT +1
pm | email
Sorry, I was being unclear. The main problem was that when I hit Ctrl+Y, nothing happened, so I assumed that the Redo function was broken (when it was not). When I press Ctrl+Shift+Z everything works as it should.
canadianstickdeath
[?] Karma: 0 | Quote - Link
Sunday, January 25 2009, 8:04 pm EST

Age: 35
Karma: 350
Posts: 2990
Gender: Male
pm | email
Lol. I like ctrl+shift+z WAY better. It's what the original cavemaker used, lol, but even if it wasn't, it'd be ctrl+shift+z in mine.
Livio
[?] Karma: 0 | Quote - Link
Sunday, January 25 2009, 8:32 pm EST

Age: 31
Karma: 470
Posts: 9620
Gender: Male
Location: Arizona, USA
pm | email
lol, that was the worst cause for a glitch ever csd. who would've gussed?

so will the next version have those cool shortcuts for adding tiles?
canadianstickdeath
[?] Karma: 0 | Quote - Link
Sunday, January 25 2009, 8:36 pm EST

Age: 35
Karma: 350
Posts: 2990
Gender: Male
pm | email
Well, the cause was a little more subtle than I described it, but basically, that's what it was. And in the next update, alt+character should work.
Livio
[?] Karma: 0 | Quote - Link
Sunday, January 25 2009, 8:44 pm EST

Age: 31
Karma: 470
Posts: 9620
Gender: Male
Location: Arizona, USA
pm | email
any reason why you can't release it now?

« Forum Index < The Hannah and the Pirate Caves Board
«Previous | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, . . . 20, 21, 22 | Next»

In order to post in the forums, you must be logged into your account.
Click here to login.

© 2024 The Interguild | About & Links | Contact: livio@interguild.org
All games copyrighted to their respective owners.