New and need assistance


#1

I made a new folder under the scenes folder that already came with the download, I named this folder scenesalone and I created my personal startup and choicescript_stats in that folder. I ran into some error messages while doing this but been able to resolve most of them then I got stuck on what to do next after I finished the startup scene(only creating one scene to play around with it to get a better understanding of how it works hands on). so I found out about Basic ChoiceScript Editor and assumed this to be my next step and here is what I wrote in that editor

*title Alone
*author Hazard
nav = new SceneNavigator([
name:‘scenesalone’
“startup”

]);

*create sanity 100
*create light 50

You hear a voice calling out to you, ignoring the voice you fall
into a deep sleep. What are you dreaming about?

*choice
#A dark cave
You walk aimlessly in this dark cave, occasionally you bump into a
wall or two. Bumping into another wall you look left and see a small
orange light, you look right and see nothing but darkness. If you wished
you could head towards the orange light but it may not be a simple walk
over there.

On the other hand you could forget the orange light and turn right into the 
darkness and try and find your way out.

So which will it be?
*choice
  #Head towards the small, orange light.
    You see that it's a torch.
    *finish
  #Turn right into the dark path and hope you find your way out.
    You turn right and start walking. As you walk you instantly feel yourself
    falling down.
    *finish

so when I go to click ‘try it’(with debug checked) an error message pops up that has got me stuck and was hoping someone could help me

Error message: Unable to set property ‘innerHTML’ of undefined or null reference.


#2

@Hazard
Your startup file should be like this:

*title Alone
*author Hazard
*scene_list
   startup
   scene_name
   scene_name2
   scene_name3
*create sanity 100
*create light 50
(Short starting page introduction maybe?)
*finish

and then, in the scene_name, you paste:

You hear a voice calling out to you, ignoring the voice you fall
into a deep sleep. What are you dreaming about?

*choice
 #A dark cave
  You walk aimlessly in this dark cave, occasionally you bump into a
  wall or two. Bumping into another wall you look left and see a small 
  orange light, you look right and see nothing but darkness. If you wished
  you could head towards the orange light but it may not be a simple walk
  over there.

  On the other hand you could forget the orange light and turn right into the 
  darkness and try and find your way out.

  So which will it be?
  *choice
    #Head towards the small, orange light.
      You see that it's a torch.
      *finish
    #Turn right into the dark path and hope you find your way out.
      You turn right and start walking. As you walk you instantly feel yourself
      falling down.
      *finish

This is what is generating the errors:

nav = new SceneNavigator([
name:'scenesalone'
"startup"

]);

#3

@ballmot

*title Alone
*author Hazard
*scene_list
startup

*create sanity 100
*create light 50
*finish

You hear a voice calling out to you, ignoring the voice you fall
into a deep sleep. What are you dreaming about?

*choice
#A dark cave
You walk aimlessly in this dark cave, occasionally you bump into a
wall or two. Bumping into another wall you look left and see a small
orange light, you look right and see nothing but darkness. If you wished
you could head towards the orange light but it may not be a simple walk
over there.

On the other hand you could forget the orange light and turn right into the 
darkness and try and find your way out.

So which will it be?
*choice
  #Head towards the small, orange light.
    You see that it's a torch.
    *finish
  #Turn right into the dark path and hope you find your way out.
    You turn right and start walking. As you walk you instantly feel yourself
    falling down.
    *finish

im getting an error message that says (object doesn’t support property or method ‘verifySceneFile’)
how do I verify scene file


#4

@Hazard
Is this what you have here?

and

Because I believe it should work.

The “verify scene” just means that you need to list all your scenes (minus choicescript_stats) under *scene_list.


#5

@ballmot

I think im doing something wrong I took a screenshot(took awhile to figure out I could do that) also here is the text scene I named dream

and the text document named startup

I also saved it as an HTML file and im still getting the error message of it wanting me to verify scene file


#6

The problem is that you have choices in the startup file. That file should only have *title, *autor, *scene_list, *create, and *finish.

You could simply remove this part from the startup:

You hear a voice calling out to you, ignoring the voice you fall
into a deep sleep. What are you dreaming about?

*choice
 #A dark cave
  You walk aimlessly in this dark cave, occasionally you bump into a
  wall or two. Bumping into another wall you look left and see a small 
  orange light, you look right and see nothing but darkness. If you wished
  you could head towards the orange light but it may not be a simple walk
  over there.

  On the other hand you could forget the orange light and turn right into the 
  darkness and try and find your way out.

  So which will it be?
  *choice
    #Head towards the small, orange light.
      You see that it's a torch.
      *finish
    #Turn right into the dark path and hope you find your way out.
      You turn right and start walking. As you walk you instantly feel yourself
      falling down.
      *finish

And leave it like this:

*title Alone
*author Andrew Baker
*scene_list
   startup
   dream

*create sanity 100
*create light 50
*finish

After *finish, the game will jump to the next scene, named “dream”.

Edit: You shouldn’t have a “scenesonly” folder inside your scenes folder, just dump all the .txt files there and you will be fine ^^


#7
The problem is that you have choices in the startup file. That file should only have *title, *autor, *scene_list, *create, and *finish.

You can have choices in startup that shouldn’t cause an error

@Hazard remove the scenes only folder have your scene files directly in scenes


#8

I guess you can, but it is usually not advised Forget that. You can have choices in your startup file :sweat_smile:

Also, isn’t the “scenes only” folder called “scenes” and under mygame?

Edit: Oh, he created a new folder inside scenes called scenesonly… I guess that is why he got errors.

(I need to get some sleep, my brain is malfunctioning)


#9

Unnatural had choices in startup and that’s a released Hosted Game. (It’s mainly a menu with the story starting in the next file but it shouldn’t cause an error having choices)


#10

I just said that because he had the same block of text in 2 .txt files. Kinda confusing :S


#11

@ballmot
@Nocturnal_Stillness

I deleted the folder I named scenesalone and dumped the 3 text documents I made in the scenes folder

the 3 scenes I made are called startup1, choicescript_stats1, and dream

this is the dream text document and this

is the startup1 text document

Is there some other file I have to go to, do I have to make a index HTML document separate from the one that they give you when you’re trying to learn how to use it.

it keeps saying I need to verify scene file so im assuming that even though I have the scenes down somehow it doesn’t recognize its existence so after im done using notepad to write a simple scene am I suppose to do anything special with those new text documents I added


#12

@Hazard
Yeah, you need to delete all the .txt files that came with the folder. I guess startup1, choicescript_stats1, and dream are the ones you made, right?

You can delete everything else (animal, choicescript_stats, startup, death, gosub, variables, ending) or just move them.

Rename startup1 to startup, and choicescript_stats1 to choicescript_stats.

In the end, your scenes folder will have

dream
startup (renamed startup1 file)
choicescript_stats (renamed choicescript_stats1)

I hope that helps.


#13

@ballmot

how do I make a HTML index document that when I click on it, it will go straight to my narrative game or if its not to
much trouble can you give me a step by step instruction on how you do things starting from completing scene to where to put it to turn it into the narrative game


#14

@Hazard
You need to compile your game. This link might help you with it.

Another way of compiling your game would be by using the CDE (Choicescript tool for making games), but I would have to post a lot of screenshots showing you how to do it, and it is pretty late where I live, so I’m going to have to do that tomorrow :sweat_smile:

But here is the CDE thread if you want to take a look at it.

Question: does opening the index html that came with the other files work for testing your game?


#15

@ballmot

nevermind checked out link you gave me

Thanks for your help and your patience in answering my questions as of right now I believe I understand how this works the problem I didn’t click compile nor did I download firefox I did both now.

again thanks for your help


#16

@Hazard
No problem, good luck with Choicescript :thumbsup:


#17

take what’s in startup1.txt and stick it in startup.txt you should only have startup.txt


#18

@Nocturnal_Stillness

im typing in

*stat_chart
percent stamina

is there a way to turn the percent bar from red to green


#19

@Hazard


This is what CJW said about it:


#20

The example game you download with the CS code from GitHub still starts the game with choices in startup.txt.

I understand the bookkeeping convenience of reserving startup for just your scenes, variables, achievements and other admin, but it’s not necessary – I can scroll to the top of startup as readily as I can open a new .txt file. :slight_smile: