r/hostedgames •

Does choice script not work on Androids?

[deleted] — view deleted post

0 Upvotes

27 comments sorted by

12

u/Spare-College-3370 9d ago

the error code is showing in your startup file, but it looks like the screenshot you shared is from your untitled file

2

u/AsparagusPleasant504 9d ago

It's in the startup file? Do I need to do testings in the startup file? I just made an untitled file to do testing. I didn't write anything in the startup file tho so the error can't be from there

3

u/MeltingPenguinsPrime 9d ago

could you show a screenshot of the startup regardless?

6

u/AsparagusPleasant504 9d ago

Omg just checked startup and yes I did write something in there😭😭. Gods my goldfish memory. I'm so sorry but I still seem to not have a hold of this coding

4

u/MeltingPenguinsPrime 9d ago

you'll get there :3 we all started at some point, and half the time coding is made up of screaming at your screen

3

u/AsparagusPleasant504 9d ago

Aww thank youu!! :3

2

u/Spare-College-3370 9d ago

when you run a test, it tests the whole choicescript, not just the file you’re in. so it’s testing “startup”, “choicescript_stats”, and “untitled” in that order. since startup comes first (like it should, so no worries there!), that’s where the test starts. unfortunately, that does mean that startup needs to be completed/passable before it can test the rest of your code.
for this one, the error is showing “line 6 of startup”. so something within there is triggering the test to stop and alert you before it moves on to test anything else.

1

u/AsparagusPleasant504 9d ago

Yeahh I checked. That's on me. I had written down something in startup and completely forgot about it.

So that means I will need to complete startup first? Before I can start implementing choices?

4

u/Spare-College-3370 9d ago

all good! you’re self-teaching a new skill, you’re bound to run into hurdles. it’s great that you’re learning.
you could make a super bare bones startup page if you’re more interested in writing the base of the story first.

something like:

*title blah

*scene_list
startup
untitled
(make sure to indent these two scene names, though. Reddit won’t let me on the post)

*create name “unknown”

and then just add variables as you go

2

u/AsparagusPleasant504 9d ago

Thank you so much!!

1

u/AsparagusPleasant504 9d ago

Ok please don't mind but why is this happening? So when I put this code down it works

1

u/AsparagusPleasant504 9d ago

Then why does this not work??

1

u/AsparagusPleasant504 9d ago

It shows this error

1

u/Spare-College-3370 9d ago

hmmm unfortunately i’m not sure why one would work over the other since it looks like they all have the same amount of indents, which is what the code is telling you is wrong for the second one. if you’re using the same amount of spaces and not tab then it should read correctly :/

1

u/MeltingPenguinsPrime 9d ago edited 9d ago

try replacing finish in the test file with ending to rule out that it's not just hiccuping over no more files on the file list.

edit: if that doesn't help try changing the choices in startup to  *fake_choice, put the flavortext in the choices but remove the finish and put it under the choicebody instead (no indents for the finish then)

7

u/BearableBastard 9d ago edited 9d ago

https://github.com/UnbearableBastard/ChoiceScript-Mobile-App/tree/main

I made this specifically for coding on android because I hate having to be stuck to my desktop in order to code it properly.

4

u/AsparagusPleasant504 9d ago

Omg thank you so muchhh

2

u/AsparagusPleasant504 9d ago

Don't mind me asking but uhm how do I use it? I have zero knowledge about coding and stuff

2

u/BearableBastard 9d ago edited 9d ago

Were you able to get the app installed?
The first time you boot the app, it asks you where do you want to store your files. I recommend your downloads folder. If you have an existing project just add it to that folder and it’ll show up in the app.

If you’re having trouble using the app or navigating the UI, then dm me and I can walk you through it.

2

u/AsparagusPleasant504 9d ago

Ok ok I have got it!! I didn't know u had to download it lol. Thanks for such an amazing app btw!!

3

u/MeltingPenguinsPrime 9d ago

what are the errors?

3

u/AsparagusPleasant504 9d ago

This

4

u/MeltingPenguinsPrime 9d ago

might sound silly but try reducing the 'indent' count... like just 1 then two?

4

u/AsparagusPleasant504 9d ago

Alright let me give it a try

4

u/AsparagusPleasant504 9d ago

It still doesn't work 😭😭

4

u/MeltingPenguinsPrime 9d ago edited 9d ago

Are you using the spacebar or tab for indents?

edit: also, yeah, what spare said: it seems to be a different file altogether causing the error Dx