Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

My game is broken

A topic by Pixelman created Sep 05, 2019 Views: 164 Replies: 16
Viewing posts 1 to 9
Submitted

so the game was working fine yesterday and today many of it's commands give errors like 'you can't do that' 

Some are fine and some are broken. When i open a save file from yesterday it still works fine but todays file that i worked a lot on has this problem.

I checked the code but i can't find what is the problem. am i doing something wrong?

If it worked yesterday but doesn't today, after you have made changes. Then yes, you have done something 'wrong'.

It could easily be something very simple, but it's hard to tell without seeing the code. I'll happily take a look at it, if you want? Would be best to compare it with the previous version (that worked) too. If that would be useful, then feel free to email to s t r i d e n t u k @ o u t l o o k . c o m      (you'll need to remove the spaces)

Submitted

thx. im trying to copy_paste the code from the new save to old save to find what code is the problem. if that didn't worked i'll send you the code

Submitted

I'd recommend comparing the old vs new in a program called kdiff. That'll help you understand the differences between the file.

Host

I'll let 8bitAG check it for you if you like, but here are some general tips:

  1. Save the file , using" MENU / Save File" often. It will save a timestamped filename.
  2. Hover over the top bar (that is red) to see the error message, and the error line. If the error has a line, then you can click the top bar to go straight to the error.
  3. If the error message is unreadable, then it's likely a formatting issue. Look for peculiarities in the text colouring. You may have accidentally not closed a brace } or left out a semi colon ;.
  4. After saving, press F5 (refresh webpage), will reset the game parser and count out weird parser bugs (which are very rare but can occur very occasionally).

Very sorry you are having these issues. Hope you can find a resolution soon.

Submitted

there is no error message. some commands don't work anymore no matter how many timesi delete/rewrite/change them. like there is a "talk oldman" command which must work when you are in a specific room. but now even if i delete the whole lines about talk oldman and rewrite them in a new way(like accepting the command any where) it still says "you can't do that"

Host(+1)

All I can offer is to take a look at the code, the same as 8bitAG. I can't explain your problem, but I'm very interested in helping you to resolve this and to try to make sure it doesn't happen to anyone else.

Submitted(+2)

thx. like i said to 8bitAG im trying someting and if that didn't worked i'll send you both the code.

Submitted

I had a similar problem yesterday. I'm sure I saved my file before going to bed the night before. I got home last night, did some changes (without loading the saved code), ran the code and the previous night's changes had been lost. So where is the browser's code cached? Should I always reload the previous saved file before I start working on it again?

Host

I've been using Adventuron for over two years now and I've never lost changes that I have saved with ONE exception:

If you save in incognito mode then the changes will not be saved. Make sure that Adventuron is always loaded in non-incognito mode. It requires access to the web data store, but in incognito, this is removed when the incognito tab is closed.

Saving a backup is always recommended, hence the save-file option. 

Submitted

I don't even know where the incognito mode is. I'm presuming that this is NOT the default. I'll check when I get home.

I always save out my file during (and at the end) of every session, and clear the editor and reload in from that save file when I start a coding afresh.

Changing the version number, as the last thing you do, is always a good idea... as you can spot if your changes have been lost.

(This isn't the issue that Pixelman was talking about, btw)

Submitted

It happened again. I just opened my browser, checked the code and the most recent changes weren't there. I followed 8bitAG's advice, cleared the editor and opened the previous night's saved file and everything was hunky dory. I'll be doing this from now on.

Apparently, this is not a new problem. Richard Pettigrew reported it in a Facebook post over a year ago, so I wouldn't be surprised if this is what happened to thepixelman.

The moral of the story? Always start from a saved file, not the browser's cached version.

Submitted (1 edit)

alright guys. i somehow fixed it.

i used kdiff (thank you polyducks!) to copy paste the codes from the new version to old version (part by part) and it is working! i still can't see where the problem was.

 thank you all for your replies

Host

I'd like to see the old version sometime still, just so that I can maybe present a better message or try to detect the problem better in the future. You can wait until after the jam is over if you like, but please save the faulty file.

Submitted (1 edit)

I've sent the faulty file(s) to i n f o AT a d v e n t u r o n.

the commands that i tested and wasn't working were "get pickaxe" and "talk oldman"

Host

If still stuck, send your file to 

i n f o AT a d v e n t u r o n . i o 

... and let me know what you expect to be working that is not working.