Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Issue with “word noodles” ;)

A topic by Natalia Ryś created Dec 26, 2023 Views: 137 Replies: 7
Viewing posts 1 to 4

Hi! When I was taking one last glance at my translation file, i noticed that some lines are literal “spaghetti noodles” (ironic, since the game is Italian!): they just keep stretching. You need to literally scroll the code editor screen(horizontally). I thought: “Oh no! No way something THAT long will fit on the screen in one go(I fear it would “leak” out, rendering part of the message invisible to the player)Need to cut it up”. And so, I put some \n tags inbetween sentences of such long passages.

1. Did I do  the right thing, or it would fit on the screen normally(despite at first glance being as long as a Loch Ness monster :) )

2. About that \n tag: please remind me…is it JUST \n, or do we need to ESCAPE it(\\n)?

Natalia Ryś

The long lines render just fine in my version, so I doubt it's necessary to use the break tags

the game wraps long sentences, no need to add line breaks! but if you want to add them, then \n is enough otherwise escaping the slash will display \n in the game

Thank you all for your answers :) but I’ve already moved on to testing the game…except I got stuck on the first hurdle!(Which ’killed’ me… at least I know the game over message works 😇 actually, all the UI elements seem to work FLAWLESSLY. It is the parser that is acting up; or rather I MESSED it up) I cannot take the parachute! When I type “take parachute”(well, the Polish equivalent of that, which is also 2 words), the game crashes. But i think I know what’s going on. The pattern for “take” in my game is JUST THE VERB. Maybe the rule should be ’(take)(.+)’ or something along these lines - that way the verb could be followed by nouns. Because now the game does not recognize the command.😕 

(1 edit)

Hi Natalia, open the browser console and see the error raised... if you want to share with me your code maybe I can help you fixing the issue,

Hi! The error was “unterminated group” except I fixed it. It was about a missing closing bracket after a conjunction. What weirds me out is that the game pulls the grammar for plane escape not from the ’jump’ string but from ‘getOut’…? But my programming skills are not very good: I am just a translator. And this is why I would appreciate help. You said I could send you my l18n file/code. Sure…but how? Via email or upload it to my Itch profile? (I have a sense of deja vu… another translator had a very similar issue recently! 😂) Best regards, Natalia

Yes, another user sent me his code via discord. If you prefer you can send it via email (removing the .js extension otherwise gmail fails). My email is volpini.federico79@gmail.com

Ok I think I fixed the take parachute issue:

I've sent back your file (just rename it and add the .js extension to make it work again and be recognized as Javascript file) :)