I am, yes. Glad to hear you’re enjoying it
Annoyingly I can’t seem to reproduce the behaviour here, but I do have one idea.
As it’s rather unclean, I’ll PM you.
Can I thank you again for your awesome program? It immeditially points out mistakes I made. Spell check is really useful. Without this, it would be impossible for me to write a book.
Hey @CJW, just coming here to report an oddity I noticed while working at CSIDE.
The Problem
So, I’ve been trying to use headers made in GIMP in the stats screen using the *text_image command. Simple, right? Should pose no problems whatsoever.
NOPE. After I use a certain image, no stats coded underneath will show up in the “Test” at all. It goes complete AWOL.
So I tinker around a bit and found out that this only happens when you place an *if command underneath that image, which I did to hide the stats until the reader reaches a certain point.
My Code
*text_image about.png center About----------------------------------------------> *comment this is the image I'm having trouble with.
*if (intro_done) and (origin = "noble")
You are $!{rank} $!{name} ${surname}, a 22-year old newly commissioned officer in the Iron Army who identifies as a ${gender}. You are the only ${child} and heir of Most Honorable Ronald ${surname}, Baron Turis and a member of the Iron Assembly. After the completion of your 4-year long training, you've been placed in the ${regiment} situated in Ostdale, capital of Ironcrest.
You have a ${skin_surface} ${skin} complexion, with ${eye_color} eyes and ${hair_style} ${hair_color} hair. People describe you as ${height} in height.
*stat_chart
text primary_skill Primary Skill
text secondary_skill Secondary Skill
percent skill_level $!{secondary_skill}
*finish
*elseif (intro_done) and (origin = "commoner")
You are $!{rank} $!{name} ${surname}, a 22-year old newly commissioned officer in the Iron Army who identifies as a ${gender}. You are the youngest ${child} of a middling banker, born and raised in Zaldan, the foremost port city of Ironcrest. After the completion of your 4-year long training, you've been placed in the ${regiment} situated in Ostdale, capital of Ironcrest.
You have a ${skin_surface} ${skin} complexion, with ${eye_color} eyes and ${hair_style} ${hair_color} hair. People describe you as ${height} in height.
*stat_chart
text primary_skill Primary Skill
text secondary_skill Secondary Skill
percent skill_level $!{secondary_skill}
*finish
*elseif (intro_done) and (origin = "orphan")
You are $!{rank} $!{name} ${surname}, a 22-year old newly commissioned officer in the Iron Army who identifies as a ${gender}. You were orphaned on birth and raised in an orphanage ran by the Church of Ru in the city of Zaldan, never knowing your biological parents. After the completion of your 4-year long training, you've been placed in the ${regiment} situated in Ostdale, capital of Ironcrest.
You have a ${skin_surface} ${skin} complexion, with ${eye_color} eyes and ${hair_style} ${hair_color} hair. People describe you as ${height} in height.
*stat_chart
text primary_skill Primary Skill
text secondary_skill Secondary Skill
percent skill_level $!{secondary_skill}
*finish
*else
Now is not the time to reveal thyself…
*finish
*text_image personality.png center Personality & Traits
*stat_chart
opposed_pair openness
Open
Stoic
opposed_pair vigilance
Vigilant
Oblivious
opposed_pair sincerity
Sincere
Sardonic
opposed_pair determination
Determined
Indecisive
opposed_pair likability
Amiable
Daunting
Hi @moonfungus, thanks for the report.
Would you mind PMing me a full reproducer (startup.txt and choicescript_stats.txt)? It’s otherwise very time consuming to go through and re-create all your referenced variables etc.
The pictures would also be great, but I can swap those out if necessary.
I don’t think this has anything to do with text_image, or the if.
I can reproduce it if I remove the images.
The problem is that you’re using *finish under your conditionals, so the stat_chart at the end is never reached.
Here’s a corrected version:
*text_image about.png center About
*if (intro_done) and (origin = "noble")
You are $!{rank} $!{name} ${surname}, a 22-year old newly commissioned officer in the Iron Army who identifies as a ${gender}. You are the only ${child} and heir of Most Honorable Ronald ${surname}, Baron Turis and a member of the Iron Assembly. After the completion of your 4-year long training, you've been placed in the ${regiment} situated in Ostdale, capital of Ironcrest.
You have a ${skin_surface} ${skin} complexion, with ${eye_color} eyes and ${hair_style} ${hair_color} hair. People describe you as ${height} in height.
*stat_chart
text primary_skill Primary Skill
text secondary_skill Secondary Skill
percent skill_level $!{secondary_skill}
*goto end_stats
*elseif (intro_done) and (origin = "commoner")
You are $!{rank} $!{name} ${surname}, a 22-year old newly commissioned officer in the Iron Army who identifies as a ${gender}. You are the youngest ${child} of a middling banker, born and raised in Zaldan, the foremost port city of Ironcrest. After the completion of your 4-year long training, you've been placed in the ${regiment} situated in Ostdale, capital of Ironcrest.
You have a ${skin_surface} ${skin} complexion, with ${eye_color} eyes and ${hair_style} ${hair_color} hair. People describe you as ${height} in height.
*stat_chart
text primary_skill Primary Skill
text secondary_skill Secondary Skill
percent skill_level $!{secondary_skill}
*goto end_stats
*elseif (intro_done) and (origin = "orphan")
You are $!{rank} $!{name} ${surname}, a 22-year old newly commissioned officer in the Iron Army who identifies as a ${gender}. You were orphaned on birth and raised in an orphanage ran by the Church of Ru in the city of Zaldan, never knowing your biological parents. After the completion of your 4-year long training, you've been placed in the ${regiment} situated in Ostdale, capital of Ironcrest.
You have a ${skin_surface} ${skin} complexion, with ${eye_color} eyes and ${hair_style} ${hair_color} hair. People describe you as ${height} in height.
*stat_chart
text primary_skill Primary Skill
text secondary_skill Secondary Skill
percent skill_level $!{secondary_skill}
*goto end_stats
*else
Now is not the time to reveal thyself…
*finish
*label end_stats
*text_image personality.png center Personality & Traits
*stat_chart
opposed_pair openness
Open
Stoic
opposed_pair vigilance
Vigilant
Oblivious
opposed_pair sincerity
Sincere
Sardonic
opposed_pair determination
Determined
Indecisive
opposed_pair likability
Amiable
Daunting
*finishends the scene, and moves onto the next one in the scene list (after a page break button), it’s probably rarely (if ever) appropriate to use that command from within choicescript_stats.txt.
Good day. Right now, I think I may have encountered a bug with the IDE’s ability to detect repetitions of the *create command.
In my code, I accidentally created the same variable twice.
*comment: In line 15
*create chapter 0
*comment: In line 173
*create chapter 0
However, I appears that the IDE didn’t notify me of this error. I found out about this because I was testing out the .txt files in the actual choicescript files to prepare it for a randomtest. Once I ran it through Firefox, I was notified of this error, which I found odd because CSIDE never told me about this error after countless amounts of testing. (Of course, it did catch a lot of other bugs.)
After fixing it, I decided to recreate the bug again in a code testing file…
*create var1 true
*create var1 true
Just as expected, the game ran through CSIDE perfectly fine and without error, whereas running this testing file through Firefox made it detect the bug.
I then assumed that maybe it only occurred if the two variables had the same value, so I did:
*create var1 false
*create var1 true
Unfortunately, the game still ran fine without any error messages in CSIDE. I feel like this may be a bug with the IDE and I hope that this will be fixed soon.
I am not saying that CSIDE is bad. It has helped me a lot and it really cuts down on the time spent programming. It’s a good IDE and I hope that it will improve as it is probably the best IDE for choicescript right now.
Hi @MonkeyLottery, thanks for the report!
I imagine you’re still on v1.2.1? If you go to the settings tab and set ‘Update Channel’ to ‘latest’, you’ll then be prompted to update to v1.3.1. This version includes a more recent version of ChoiceScript that’ll catch the error above.
Wanted to update from 1.2.1 to 1.3.1, but received errors about corruption. Then uninstalled everything, cleaned out any cache/temp/AppData related to IDE, reinstalled the 1.0.1 x64 version (from the GitHub) and again when I want to update the latest 1.3.1 or even to the stable 1.2.1 it gives out this one:
Any idea how to fix this?
Edit: Fixed it.
If anyone has same issue, even if you have admin user rights, still need to run IDE as administrator.
Glad you fixed it, but I’ll make a note to review those error messages… And/or try to make it so you don’t need to run it as an admin (that’d be preferable).
Hi CJW, I had a bit of feedback: The moving of the settings, issues, help & information and so on menu buttons from the top right horizontal bar to a work space fragmenting vertical bar is causing me no end of irritation since horizontal real-estate is already so precious with three panels open - having that quite wide vertical strip of nothing now dividing almost the whole screen feels very wasteful: they were better at the top.
Hi Alice, and thank you very much for the feedback. Can I open this to the floor and ask if anyone else feels the same way?
The primary reason for moving the navigation pane is that we were quickly running out of space for additional tabs/features. An alternative solution could have been to shrink the buttons, perhaps. But I feel that might have also been less preferable to some users. Another thing I experimented with was the ability to hide/close certain tabs when they’re not in use.
However, I think longer-term there are much larger underlying issues with the UI in regards to screen real-estate. I’m happy to work with people who’d like to get involved in discussing and trying out such improvements, if anyone is interested? I have to be very careful about making changes based on one comment.