Monday, November 2, 2015

Help with AS2

Some players are having problems with the way AS2 stores the variables information as cookies. Thus, I'd like to find a way to write my own files from AS2, but from everything I've read, it seems almost impossible.
Does anyone know how to do it?

57 comments:

  1. Sounds like some virus protection by the interface- not in the manual for sure:D

    ReplyDelete
  2. Depending on what version of zinc your using this might be what you need http://www.multidmedia.com/support/livedocs/4.0/index.php?url=http://www.multidmedia.com/support/livedocs/zinc/4.0/main.php?action=methods%C2%ACclass=FileSystem%C2%ACid=9949 note this will only write plain text. This is the whole api for the filesystem http://www.multidmedia.com/support/livedocs/4.0/index.php?url=http://www.multidmedia.com/support/livedocs/zinc/4.0/class.php?action=class%C2%ACclass=FileSystem From the looks of it though as2 does not support much in the way of file writes

    ReplyDelete
    Replies
    1. The problem for this choice is that I have to compile through Zinc in order to check if saved files are ok. I can't test it from Flash.
      :S

      Delete
  3. Oh no ! :'( the % has not raised

    ReplyDelete
  4. Im guessing you are looking into an alternarte way fo saving progress outside of .sol/shared objects etc. Thats a good idea! Sadly i know verry little about adobe/as2.

    Hmm... I think AS3 has has a file saving function but i dont know if its available in AS2

    A bit of googling resulted in this:
    https://uk.answers.yahoo.com/question/index?qid=20130505125051AAREvbd
    The answer is using PHP, might help.

    Ill keep an eye out, if anything pops up ill message again.

    ReplyDelete
    Replies
    1. The problem is how could an user execute PHP code locally from his own PC? I mean, he would need Apache or anything in order to play SR, right?

      Delete
    2. I believe you can execute things using your local host feature. Chrome has one built in.

      Delete
  5. I have tracked down how and why the saves are being deleted here's how Stop this from happening

    First make sheer you have one .exe your using having more then one can delete your saves.

    2nd check your internet browsers sittings and make sheer you don't have auto delete history and cooks on because this too will delete your save as its stored as a cookie.

    3rd Some Antivirus software will delete cookies if you have it set to hi.

    Now on to the crashing there is a enemie that seems to be causing the crush, I think its the one that looks like a tree If you get to close to hem the game will crush out.

    ReplyDelete
  6. i did the translation and what do u need next ?

    ReplyDelete
  7. Will you update beth textures too ?

    ReplyDelete
  8. Hnyarly is dead :/ the game will not be updated sorry to say

    ReplyDelete
    Replies
    1. He may not be dead, but the game is. The last time i checked this blog was in April 2013, and now that i've come back, almost 3 years later, there's only a few more enemies and items. No new areas, no new sex scenes (unless the masturbating one in the gnomes bed is new), etc. This would work if he had the time to work on the game but he doesn't have that time, so this game will never be finished.

      Delete
    2. Well we should look the blog one time per year :p

      Delete
  9. Hello? Is he/she dead?

    ReplyDelete
    Replies
    1. Not yet
      :p

      Just having some vacations.

      Delete
    2. but you are still working on it then? will we get a new years present?

      Delete
    3. Still working, but there's ni new year present yet.
      :(

      Delete
  10. Hey, Nyarly, can you release a minor version with some of the new implementations, like a teaser? As a suggestion, maybe more customization on boobs size like a boobs_size = float * std_boobs_size were float is set on new game ;D

    ReplyDelete
    Replies
    1. The fact is that new implementations are mostly engine changes, and just a few visual ones. So you won't see much new content.

      About boob size, It's not that easy, hehehe. I have to draw the new sizes. It doesn't work just re-scaling.

      Delete
  11. Getting back to the main subject. The best practice here is to use the zinc save tool rather then the php one if your going to change the way the game saves data. The php option would require the use of a local web service which is something that not everyone can be expected to setup and there will be a lot of limitations as to where that file can be written to.

    The zinc solution is really the only safe and programmatically viable option. It doesn't require the end user to install and configure any services.

    Unfortunately with this problem you've run into one of the limitations of AS2 and there are no great solutions. If you have the time and the gumption I'd say start rewriting the game in AS3. Doing so would provide better performance for all users and give you access to a much better set of libraries including one that will allow you to save to a file. This is just a suggestion do with it as you will.

    ReplyDelete
    Replies
    1. That's exactly what I suspected. By the way, I don't trust too much in Zinc libraries. I tried using functions to manage the game window (such as switching from full screen to desktop window) and there was no way to make it work.

      So, I think I won't loose more time trying to fix this issue. It's a pity for people that can use only two save slots.

      :(

      Delete
    2. HNyarly, do you think you will you switch to AS3?
      What do you want to do?

      Delete
    3. I think it's not possible. I have thousands of lines of code. Almost no use of classes (only a couple).
      And my AS3 knowledge if very poor. I would need to learn a bit.

      Delete
    4. So how has progress been? Are you able to move to 80%? Or are you currently pre-occupied with other matters? Happy New Year btw, better late than never Amiright?

      Delete
    5. I Can only save for while the game it on. it will reset once the game is closed

      Delete
    6. +1. If there is a known issue, H Nyarly, could you add description of steps required to make saves? Thank you

      Delete
  12. Suggestions:
    1)Maybe, healing rune (it can be Earth rune)? With it, You can down rate of potions drop, in favor to other items, so they (potions) will be more valuable, especially magic potions (for now, player can quickly obtain tons of potions, just because they are drop more often then even money bugs).
    2)White rats later as regular enemies. They closer to strong regular enemies then to bosses.
    3)Random events, such as «sleep in this cave and see what will happen» or «eat this berries, with interesting effects». The more secret are they — the better. Players will exploring game, knowing: curiosity is encouraged.
    4)Some monsters will be aggressive only (or even spawn only) to player with big attractiveness. «If she beauty enough, the are reason to hunt for her».
    5)Possibility to change appearance later in the game (change hair color, eyes color, etc.), for the price or free. Wizard shop or just hairdresser and colorful lenses.
    6)Rebalance of starting «characters»: for now, Nerd has quick start because her starting equipment can be sold for more price then other’s, and she has items, which in total gain her +3 to attractiveness, on start of the game. There need either liquidate every not perfectly cosmetic difference between them, or rebalance them, so choice make any reason. Possible variant:
    _a)Good girl: (+)Hight Attractiveness (basic); (-)Hight Attractiveness*.
    _b)Rich girl: (+)Expensive clothes (easy money); (-)Low Fight**.
    _c)Strong girl: (+)Hight Fight skill**; (-)Low Attractiveness (poor equipment).
    _d)Nerd girl: (+)Bonus starting sluttyness***; (-)Cheap clothes (no starting money)*****.

    Notes:
    * — it make sense if we are using (4) suggestion. This, in same time, make you benefits if you want some «fun», but can make you problems, which you absolutely don’t want to have in early game, especially because you can literally can stay naked in a middle or the forest with 5HP left, where everything what not want to f**k you, want to kill you.
    ** — both advantage and disadvantage actual only early in the game, so it actually new «balanced» character.
    *** — quicker rise of characteristic, actual later on the game. Or just bonus to kicks, if You actually nerf it to Hell. She know Kung-Fu, after all!
    **** — if lower bonus from items (liquidate bonus from glasses or lower bonus from shoes), she will need another starting bonus. It can’t help with boss fight, and player quickly lose this bonuses if want better equipment.
    ***** — yes, polar opposite to that we have now. In total, her equipment most expensive. Lost Attractiveness can be gained with levels.

    5-th suggestion, of course, for distant future, but it will be cool.

    MosKit, guy with bad English.

    ReplyDelete
    Replies
    1. Of course, it only sketch, I don’t have time to create normal system. Also, lack of parameters which really change gameplay make work hard.

      Delete
    2. Oops, make some mistakes with this notes; typing this for half an hour.
      Better I explain this another way.

      a)Because this one is only character without any bonuses, this can make game with her more interesting, because all other characters somehow better than she.
      b)Actually, there even no need for change something, besides money bonus, she makes lowest change in gameplay, so she actually «balanced» character.
      c)Potentially good, this bonus dangerously quick lose any benefits towards others, because fight skill rise faster than exp, so player will have 10 Fight before first level-up, and still have other bonuses.
      d)Because now she two benefits, one of which copy Rich girl’s bonus, I think we can kill two hares with on shot: make some fun with «Good girl» (higher sluttyness for her make no sense, if I correctly understand her description, from which her «name»), and still have bonus for Nerd, unique for her.

      Maybe, if starting sluttyness/sex skill will be linked with starting characters. this system will be more adequate. And later it will be more clear, what is beneficial and what is not.

      Sorry for bad English, it’s not native for me, but I really trying to improve it.

      Delete
    3. MosKit, I told you many, many times: night existing for sleeping, not for forums. Differences not so big, as you see in early bilds, yet there still little favor to «nerd», just because bonuses from shoes and glasses, not from clothes, at start there only 1 point more.

      And your constant excuses for bad English piss off people much more than mistakes themselves.

      Zartan

      Delete
  13. Sooo...when are you going to upload the next version?

    ReplyDelete
  14. H Nyarly i think you already know this but, i just want you to know that we understand you have other stuff to do aswell and you must be a busy person but please dont forget to make a status update from time to time. Thank you and keep up the good work! A random guy

    ReplyDelete
  15. Soon will be 3 months since previous update. Will be there any new information/update/anything at all? Can You at least reminding for us once per month what you still alive and not eaten by zombies/abducted by aliens/etc?

    i even not ask about next release, I just soon go mad because lack on any new information.

    ReplyDelete
    Replies
    1. HNyarly's dedicated to this, but inconsistent. You simply have to be patient. And if he was dead, which would be sad, there would be nothing you could do about it anyway.
      Say it with me: "Patience".

      Delete
    2. I just don’t want another Resident Evil: Progeny. It even not officially cancelled, but there no news since 2014. I think, they have been eaten by zombies.

      Delete
    3. 3 months? Ha. DyrtiC101’s «Legend of the Twin Orbs» has new release after THREE YEARS, and there still fans to say «at last! thank you!».

      MosKit

      Delete
    4. DirtyC101 at least sometimes post something to remind he still alive…

      Delete
    5. Yes, once per 3 months, at best. You really need some patience, peoples say right thing. You just don’t have another option, especially if HNyarly really eaten by zombies, like you say.

      MosKit

      Delete
    6. I post sometimes too, so you can know zombies didn't eat me (yet)

      Delete
  16. Ha! Finally after 3 months of hard work and playing your wonderful game I figured out how to get sluttyness up to 86. Used saved editor. I also activated pig trader as a preview in anticipation for the next version to be released

    By the way I have been a fan of your game since the very early alpha version was released on Newgrounds. This is my first comment on your work.

    Keep up the good work Hnyarly you have achieved much more than most solo game devs.

    ReplyDelete
    Replies
    1. For solo devs don't cancel game after several years of development – already achievment, at least gold, if not platinum. On summer game will celebrate it's 5-th birthday (I think, it deserve something special; time for this still left).

      Delete
    2. where'd you get a save game editor?

      Delete
    3. Google it. If you struggle too much search for a sol file editor. Cause that is the format of flash saves.

      Be extremely careful what you change in the editor and backup your save game file before fiddling or you'll lose everything

      Delete
    4. Man, I can't even imagine how long it took to crack the code. I changed the Beth-slut and the Beth-SLUT variable but nothing works. HAHAHA.

      Seriously, how? How'd you break it?

      Delete
    5. Out of respect for H Nyarly I don't wish to give too much away. so all I can say is you can reset the story of each H scene in the editor and edit the amount of experience you get from the bosses. PS. If you get sluttyness above 82 the dialogue changes for the merchant/guard, wolf and slime. Just need to reset them all and bring them back from the dead

      estado
      respawn
      hp
      visible

      is the main things to edit

      Delete
    6. Be careful editing saves... I did a save check function, hehehe.

      By the way, anyone able to successfully edit the saves, deserves my respect.

      Delete
    7. I managed to get the Sluttyness to 72 but no further. I did find some interesting data that logs how many times the character has done a certain act with a certain enemy type.

      Of course, editing it was futile as the game locates the anomaly and never lets you play. You've done a good job locking in the H-event XP. But now that I think about it, there might be a flaw in the H-system. Hear me out...

      From what I've gathered playing the game, Beth gains less XP the more she does a certain H-type with a certain enemy/NPC. The whole, "it gets boring and I need better stimulation" thing. What it does is make the players look for every NPC just to raise the Slut-stat high enough to get past the 80-120 threshold. Not necessarily a bad thing until you run into the class limit.

      If your system relies on a "First Time" basis system with Slut-xp jumps of somewhere at 3-7 max, and the game seems to have at least 4 types of NPCs (humanoid male, humanoid female, animal, and monster), then that only gives about +12-21 to BASE Sluttyness. Players will never get to increase past the threshold unless they temporarily boost it using Beth's horniness. But even then, it'll only just past 80. Even with the less XP per/repeat, it might hit 100 if the player does it right but it won't break even.

      There are ways I can think of to solve this while keeping the system:

      1) add items that add a good amount of perma-Slutyness. A reasonably priced consumable like the books would help.

      2) increase the H-scene xp gain.

      3) widen variety of NPC types that can do H-scenes. This would be the most difficult as you'll push back your release schedule for more content.

      4) add an NPC that can perma-increase Slutyness for a fee. Like someone with a careeer in the oldest profession.

      5) Using Horniness boost to also increase H-scene xp gain.

      Other than this, the game is good so far. My messing around with the code revealed this and some ways to increase certain amount of items.

      Delete
    8. You are right with your "it gets boring and I need better stimulation" approach. I wanted to set a realistic simulation.
      Each version I make will have more H-events to farming slutyness.

      Also, the higher her sluttiness is, the kinkier she can go in sex... I mean, with a low slutyness, she won't try some kind of sex.

      So:

      1- No perma-slutyness items. She can only permanent increases it by the things she does, not by items she use.

      2- Maths is well tuned. She just need more events, no higher stat increases.

      3- I will add.

      4- Maybe.

      6- Somehow it works. If you temporary increase slutyness, she would have more choices in sex that could increase more the stat.

      Delete
  17. u can use the "minerva" for edit the "sol."files

    ReplyDelete
  18. Load game doesn't work. Locked in Fullscreen. 0.402 mg No idea what is wrong. Help please? (Downloaded game about 4 hours ago, and I like it, just wish those two problems weren't problems.)

    ReplyDelete
    Replies
    1. Fullscreen can't be disabled. I can't make the game to switch from window mode to fullscreen, so I have to keep one or another.

      About loaded games, you must enable cookies for flash. Try in your web browser.

      Delete