Wednesday, December 24, 2014

AS2 Help needed!

I'm trying to make an "exit" button, but:

        fscommand("quit","true");
        fscommand("quit");
        fscommand("exit");

All them work in the SWF file, but none of them work for the EXE. Any idea about how to make the button works?


91 comments:

  1. I don't use as2 but i found this http://www.justskins.com/forums/how-to-exit-out-83491.html

    ReplyDelete
  2. I saw on the internet stuff like

    import flash.system.fscommand;

    //Then you can use the following function for the button click handler:

    private function clickHandler(event:MouseEvent):void {
    fscommand("quit");
    }
    so you would import the flash library or something to make it work in exe format.

    ReplyDelete
  3. Just forget about exit button, its useless.
    Hruma/

    ReplyDelete
    Replies
    1. +1
      I would rather prefer finally some playable content this year

      Delete
    2. Not in 2014
      :(

      I'm still working for a release on early 2015.

      Delete
  4. Fuck MDM ZInc!!! It's impossible to find the "application" extension.

    Ok, there's no 'Exit' option. Being a bit useless is another point to don't make it. xDDDDD

    By the way... have you guys discovered something new in the blog? hehehehe

    ReplyDelete
  5. Well, I notice you've added Eromancer to your webring, and you seem to have a new comment engine... but I'm guessing you're talking about the SR 0.4 you quietly added to the download page?

    ReplyDelete
    Replies
    1. Well, I've just given the new version a spin - cheers for indulging your followers with an ahead-of-schedule release.

      As Rebby noted, the fireball rune is now a blow-yourself-up spell. Beth does the casting animation, hits herself with the fireball (from what looks like one character width away), and then immediately turns around. As funny as it looks to repeatedly cast it for an Immolation Dance, I don't think this is what you had in mind. :)

      Loot system is working great, by the way. Doing my RPG hero training regimens is a lot more satisfying when I periodically get goodies and costume bits for my effort (it does raise the issue of WHY these slimes are dropping blouses, though... how many poor girls have met their dooms in this horrible nerd's trap!?).

      I'm going to be leaving for a Xmas Eve party in a bit, so I couldn't poke around for long. I'll give you more feedback as I get the chance. Cheers!

      Delete
    2. Excellent! There must be much more bugs to fix.

      Now all items in game can be obtained, including the secret ones (if you have luck with the loot). There are also some new enemies. Some of them are really hard, but you can try to defeat them.

      Delete
    3. Damn, I was kinda interested in seeing this fabled 'Immolation Dance' for myself, but I guess can be more impressed in how fast you fixed that. Keep up the fantastic work.

      Delete
    4. Yeah, when I loaded my game (near the old munchkin wizard's hut), the bear was a bit of a rude surprise. I managed to elude the beast by getting him tripped up on some trees, but not before that clever jackass found a way to walk through the walls of the hut to get at me. Truly, it was a harrowing experience.

      Also, when you load a game, Beth's eyeliner always changes to "provocative". None of her other appearance traits change, and Beth's "sluttyness" stat remains unchanged, so I'm guess it's just a small graphics glitch related to the addition of the extra appearance options.

      By the way, do you have a preferred channel for feedback? It seems a bit awkward to be reporting issues and commenting on new features in the comment section...

      Delete
    5. Oh, and I almost forgot... Merry Christmas/Happy Saturnalia/Festivus For The Rest Of Us!

      Delete
    6. I have to fix even that small glitch!
      Also, this comment section is for write about all the aspects of the game. That includes opinions and bug reports (so everybody can help finding the conditions that trigger bugs... etc).
      You can also write to may mail clicking in the "View my complete profile" link.

      :)

      Delete
    7. Make up bug fixed for the next update.

      ;-)

      Delete
  6. Was I meant to get past the soldier at the end? because if you seduce him he will grant you access but crash your game if you try to enter. ^^

    ReplyDelete
    Replies
    1. I've been testing and I didn't have any crash, but you can't walk further than the town wall because it's not done yet.

      Delete
    2. Yeah it came like a white screen with an exclamation mark in the middle. I'm not sure if this is considered crashing the game but I believe the progress towards seducing him was lost :P
      And it might be a smart idea to work on the attack speed of the enemys. I was lvl 9 and instantly died from making a millisecond mistake on standing in the wrong direction while having the large and small ants on me. xD
      It's quite difficult when you can't even wait 1 sec if you want to survive. The knock back is another thing that might ned a little work. I could just stand and kick the bair until it died by holding in the C button to kick it.
      Hope this helps a little! :)

      Delete
    3. I still have to find what causes that bug. Anyone has the same problem?

      About the enemies, they are ok. I mean, bear is supposed to be a regular enemy, and giant ant a boss.

      ;)

      Delete
    4. 1) You must fix bear. He can't deal with tree on the way, but can walk throw walls.
      2) Weasel (or ferret, don't remember) after taking damage immediately jump, but did it not on current player position; it tried attack previous player' position, and, of course, miss. That makes it much more easy to kill. It's normal?
      3) Game crush when player tried walk to Nilburg. When I loaded save file (both old and new), I successfully reach the bridge.
      4) Can you change Beth' emotions and/or animations when she lost part of clothes that she can't remove because has not enough sluttyness? She looks like she don't care about her nudity; also, she dress up only after sleep or rape, but if player not go to sleep, she can walk naked and don't try cower her nudity.

      Sorry for bad English. I hope, my questions still possible to read and understand.

      Delete
    5. 1) I want bear as it is. You can take advantage of a forest full of trees, but you'll have problems to defeat it in a empty space.
      2) Ferret is a regular enemy, so should not be too difficult.
      3) I've been testing and game doesn't crash for me. :-(
      4) I should do as you wrote, but now it's not a priority.

      Delete
    6. 1) I can easy kill them both. I mean that Bear can walk throw house' wall. And not throw door, it walk throw WALL, with NO window. I just leave house, and kill bear from behind, but it is a bug.
      2) Ferret' main weakness -- AI. After return from knock-back, it jump on previous player location, and player just kick it another time, without any damage. In process, Ferret ignore current player's location. I think, it make easy enemy too easier.
      3) But that still happening, and many players (including me) have that problem.
      4) You planning fixed that -- for me, that's enough, for now.
      _________
      Later MosKit send you screenshots, he has same problems.

      Delete
    7. 1) I have to fix the house walls. xD
      2) Ferret forces player to move. It's more difficult than if player just can keep kicking. It's not that hard, but this enemy is a regular one, so this is the kind of difficult I want for it.
      3) I'll test it without any save.

      Delete
    8. Okay, if you think that Ferret is fast enough (i think, it must be little faster), just make more ferrets, it compensate ferret’s weaknesses.

      I created save file only because game crashed three times, for finding zone that cause crash. For unknown reason, after loading save-file, crash not happen. I sand you screenshots later.

      Delete
    9. New data about bug.

      Bug has not any relationships with location (second crash occur in slime cave) and saves (I load previous file). I think, need check for bugs end errors new loot system, that is only new think in this version, if not count crazy ferrets (ants, plant and bear exist in test version, and not caused any problems).

      Delete
  7. Current bug, during h scenes with gnome the rats tend to freeze and become invincible
    -pmt

    ReplyDelete
    Replies
    1. Does they stay that way when you rest in a bed? Or when you save and load?

      Delete
    2. Yes I slept in a bed in cave and they stayed there however I left them alone for a bit lost to red wolf I thought I was strong enough..I Aldo beat the bear after I slept in wizards hut it was after all that I went back I saw they were finally gone I do not know if it is linked but I hope it helps.
      -pmt

      Delete
  8. Hey hnyarly, I'd like to point out to you that the Mac version doesn't open and hasn't for a while (there aren't many mac users to tell you this though), since I'm been a long time fan... I've been stumped without being able to play SR :C

    So I was wondering if you upload the SR games in swf form so that Mac users can still play the game :o

    Thanks, (long-time-fan) Smileyfacevirus :)

    ReplyDelete
    Replies
    1. I'll have to fix the mac version. I don't like to publish SWF versions.

      Delete
    2. I'll be honest with you, I don't think that it's worked on the Mac side before (I think), the earlier versions of the game which you've uploaded for the Mac version always ended up either opening then closing, or crashing :\
      This time it doesn't even try to open :s ( sorry to be the bearer of bad news :c )

      Delete
    3. Send me an email and I'll try to compile by other means. So we can try the configuration to make it works.

      Delete
  9. Ya can't put it in windowed mode either, I'm using W8.

    ReplyDelete
    Replies
    1. The current version is full screen only. If people prefer the old windowed mode, I'll compile so.

      Delete
    2. Window version option too please

      Delete
    3. For the moment I'm having problems using the MDM Zinc extensions to change window/full screen mode. I don't know if I'll be able to fix it.

      Delete
  10. Forget that Exit button :) We have a nice X at the top :)

    ReplyDelete
  11. You can't load up your saves either

    ReplyDelete
    Replies
    1. The saves from the current version, you can't load them up once you close the game and launch it again

      Delete
    2. Flash uses cookies or something like that. You need to enable them in order to allow saving. Have you tried it?

      Delete
  12. so I've gotta say new content looks great this even ever so small update was awesome to wake up to on Christmas morning. How ever the one issue I've had is hope escape now closes the game i keep losing my progress because of is. also I've had an issue where when saving if i'm using my last page for what ever reason the save doesn't ever seen to get created. But one again this game looks and plays awesome, great job as always.

    ReplyDelete
    Replies
    1. I could disable the ESC key, but then you'll only have a way to close the game: pressing ALT+F4, because I was unable to make the Exit option in the main menu
      xD

      Delete
    2. Maybe a "are you sure you want to exit?" prompt would fit.

      I've lost progress a few times at the elf merchant or with my inventory up thinking ESC would clear the store/bag interface. It is frustrating sometimes.

      Delete
    3. It's impossible to add that prompt.
      The problem is that I can't implement an exit game by flash. I have to do it by the compiler, so I can't control when compiler does.

      Delete
  13. that'd beat the frustration of losing 3 hours of play to a wrong key-press

    ReplyDelete
  14. I hate the white screen with an exclamation mark in the middle... I've lost my progress too many times :-(

    ReplyDelete
    Replies
    1. I still have to discover why it happens.

      Delete
    2. Maybe it's tied to an excess number of characters in memory? Personally, I've only had the crash happen after encountering both the swarming ant and roach enemies. In particular, the giant ant's support minions occasionally wander off and can be encountered away from main group, causing slowdowns and aggro range weirdness.

      Delete
  15. after the wiz old lady, i cant get to the town because there is no safeguard, where can i find safeguard?

    ReplyDelete
    Replies
    1. There is no safegard..you must seduce the gaurd.
      -pmt

      Delete
    2. how??? increase seduction or something?

      Delete
    3. Yes any h scene will increase seduction if its with same creature will only increase to a certain point aka the slime boss after you h scene react with slime boss after about 3 times that's the limit. If necessary h scene with red wolf and read books. Girl scene in cave helps along with The gnome as well as the books I also believe seducing elf merchant help a little.
      -pmt

      Delete
    4. pmt is right. The quests for the safeguard are not ready yet. You can seduce the guard, but the city is not done yet.

      Delete
  16. are the demo ends, just after the guard? I thought I can enter the damn town :(

    ReplyDelete
    Replies
    1. I've been enjoying watching this project develop over the years. This was nother big step in content. I'm really impressed. Thank you, as always :)

      Delete
  17. I'm having the same crash error with the gear and exclamation point.
    It happens for me when walking around the field of bushes on the west side, when heading east, before getting to the wizards house.

    ReplyDelete
    Replies
    1. Finally got all the way to the bridge without crashing, but when I tried to go back to the elf vendor it crashed when I was near the stone circle. Also, It's an exclamation in a circle, not in a gear as I wrote before.

      Delete
  18. Does mastubation option awailable?

    ReplyDelete
    Replies
    1. How can I use it?

      Delete
    2. If you tried sleep with too high lust, Beth will masturbate, and sleep after that.
      You can use magical books for grate raise her lust, also try buy teleportation rune (green), and use portal for fast travel from Elf to cave. Or just go in bed after Gnome event.

      Delete
    3. why doesnt mastubation increase beth's sluttyness?

      Delete
    4. Well, mastubation is a common behaviour. I think.

      Delete
  19. There is no raper tree in current release?

    ReplyDelete
    Replies
    1. Nope. The forest is too small for so many new enemies.

      Delete
  20. Well, i just tried version 0.400.
    And to be honest the German translation is terrible, sure its not complete but its hard to understand anything, the sentences dont makes any sense it sounds like a quick google translation.
    I could help at translating English into German

    ReplyDelete
    Replies
    1. Do more german people think like Kev?

      Delete
  21. Clearing your cookies via Internet Explorer fixes the not saving issue......
    But you will lose your save game......

    ReplyDelete
  22. Some things that caught my eye at this moment:

    1) The rats are indeed sometimes stuck (therefore does not move) and cannot be killed.

    2) The Slimes can be used as shield as the Slime Boss Monster CAN kill them.

    3) The little Elf girl says "our home in...." Where?

    4) I just killed the Bear while kicking it.

    ReplyDelete
    Replies
    1. 1) If someone could tell me when it happens, it would be very helpful.
      2) Right. Every spell or ranged attack can damage everybody. Not only slime attacks! So, you can use it as strategy to defeat enemies.
      3) I just made the sentence shorter.
      4) It won't work with 2 bears, muahaha!

      Delete
    2. 1) I am not sure when it happen with the Rats, but it just happen randomly when Beth walks around and all. Sorry. It looks like this: http://imageshack.com/a/img633/9618/JtvDxE.png

      Yes, it is odd that it was still damaged before.

      2) There is also another way to beat several enemies. Just kick one when they are behind each other and he will damage the other one when he dropped upon him. If you know what I mean.

      3) Okay.

      4) Two Bears? Cool.

      Some other things:

      1) I could be very wrong, but it looks like the middle part of the purple dress has a different color purple. As if someone erase that part and then (like it done in Paint) fill it in with a standard purple color. If you know what I mean. Sorry, if I am a bit unclear.

      2) Is it possible to let the Plant monster to have a bite attack if Beth gets too close as well? It could make it more difficult.

      3) I am not sure if this was planned, but the Lizard seems to have returned while you already have the ring. http://imageshack.com/a/img901/1504/qKYVZm.png

      It will give me TWO Rings: http://imageshack.com/a/img909/6026/j0I0GZ.png Later on it spawned again for the third time.

      Delete
    3. Oh. Something funny just happened. While walking towards the bridge I got into a fight with the bear and lost. But while it could have been a Game Over, the Red Wolf (who came from behind at the same time) somehow well...you know...saved me. If you know what I mean. Because of that I survived the Bear attack, could move away, heal and finish him off.

      Delete
    4. - Rat bug fixed.

      About the new things:
      1- Can you post an image about the purple dress issue?
      2- Plant already has bite attack.
      3- Ring bug fixed.

      Delete
    5. The dress: http://imageshack.com/a/img537/8097/NjDasB.png and http://imageshack.com/a/img538/1024/dluih4.png

      Delete
    6. Fixed! I'll upload it in the next update.

      Delete
  23. Yes the bear can be killed very easy by kicking it cuz it pushes him away.
    Keep up the good Work -Sky

    ReplyDelete
  24. Hello H Nyarly, Great game hope to see more of it later.... Can you tell me where to find the saved games and also why I can only save three when there is more slots?????

    ReplyDelete
    Replies
    1. Someone pointed that it may be a problem about how much space your system allows to flash for shared items...

      Delete
  25. Not to be cheeky, but, you can press Esc and it'll close the game. At least, it did for me.

    ReplyDelete
  26. An idea for your exit button. I don't know about flash programming but perhaps using a boolean variable that when set will call breaks until you reach the end of all your code will get you to the exit signal.
    ie. Add something like
    if quit == true then break;
    at every level of code (inside every loop) down to the main function/thread outside of all loops. This might do the trick as most compilers will call for program termination when there is no code left to run.

    ReplyDelete
    Replies
    1. oh and the exit button just sets the variable

      Delete
  27. hi dude, i been a follower since way back on ng, with the v0.386 i cant move
    i tried with different button assign and stuff but nothing seems to work, any ideas?

    Mac up to date

    ReplyDelete
    Replies
    1. Honestly, I don't know how to help you. I don't have a Mac to test the game. I only compile the Flash and pray to Turing waiting it works for Mac and Linux.

      Delete