%% Sorry! The code lost its mind while executing a command. Not your fault.
Please send this error information to the admins and tell them what you were doing at the time:
Description: “app”
Error: “comparison of Integer with String failed”
I got the above while trying to run a test character through chargen. Dunno if I borked something when I did the initial installation or perhaps while I was configuring things. Just thought I’d see if anyone had come across this before.
Also hello! This is my first post.
1 Like
My guess is that it’s a configuration error related to one of the settings in fs3skills_chargen.yml. For example, if I change the max_ap from a number to a string, I get a similar error:
Correct (a number):
max_ap: 40
Incorrect (a string):
max_ap: '40'
If you look in the log file, you should find more details about the error, including the file and line number where it happened. See the logfile tutorial if you need help getting the logs. That may help you figure out which setting it’s trying to use when it fails.
2018-04-15 23:20:52 ERROR - Error in app: client=274 error=comparison of Integer with String failed backtrace=["/home/ares/aresmush/plugins/fs3skills/helpers/app_review.rb:134:in >='", "/home/ares/aresmush/plugins/fs3skills/helpers/app_review.rb:134:inblock in check_high_abilities’", “/home/ares/aresmush/plugins/fs3skills/helpers/app_review.rb:134:in each'", "/home/ares/aresmush/plugins/fs3skills/helpers/app_review.rb:134:ininject’”, “/home/ares/aresmush/plugins/fs3skills/helpers/app_review.rb:134:in check_high_abilities'", "/home/ares/aresmush/plugins/fs3skills/helpers/app_review.rb:14:inblock in ability_rating_review’”, “/home/ares/aresmush/plugins/fs3skills/helpers/app_review.rb:13:in each'", "/home/ares/aresmush/plugins/fs3skills/helpers/app_review.rb:13:inability_rating_review’”, “/home/ares/aresmush/plugins/fs3skills/public/fs3skills_api.rb:56:in app_review'", "/home/ares/aresmush/plugins/chargen/templates/app_template.rb:19:inabilities’”]"
It’s a little hard for me to follow.
This is the same error I got after I changed by action skills.
I changed them back to default, and it persists.
I also noted that I have a “ghost” skill. I had added Deception, put things back to default, and Deception still shows on the web chargen (which no longer functions).
@Goodstarbuck - That error is from the check of max_skills_at_or_above. Check your configuration of those values in fs3skills_chargen.yml. It should look something like this:
max_skills_at_or_above:
5: 3
6: 2
7: 1
What’s your config look like?
@KarmaBum - If you’re getting the same error on the same line (app_review.rb:134) then you could check the same config option. But “comparison of Integer with String” is a generic error that could come from a number of causes. What does your logfile show when you try to access the web chargen?
I haven’t changed that at all.
max_skills_at_or_above:
‘5’: 3
‘6’: 2
‘7’: 1
Should the ’ not be there?
@Goodstarbuck @KarmaBum
Better response after more fiddling … It looks like it’s a bug with the setup screen editor. Those numbers in max_skills_at_or_above and max_attrs_at_or_above will be switched from integers to strings whenever you edit something in the fs3skills_chargen.yml file (even if you’re editing a different setting in that file).
Try using the Advanced Editor mode and change those from strings to numbers (e.g. 5 instead of ‘5’) and see if that fixes it.
If not, you can PM me your fs3skills_chargen.yml and fs3skills_action.yml contents (which you can copy/paste from the Advanced Editor mode) and I can see if I can reproduce the problem you’re seeing.
Turning the strings into numbers worked, the errors disappeared and now the command app works correctly. Huzzah!
Excellent. I’ll fix the bug in the next patch so it doesn’t keep happening. Thanks!
Using the advanced editor + not being a dork solved mine.
I have a test-character going through Chargen. So I change something, then test that all the commands work. I set up new skills, hit “app” and got the bug.
I had the test toon use “reset,” and all went back to normal.
Carry on, nothing to see here, thanks as always.
1 Like
While playing around tonight I did find an issue if the Testdummy char had a “Firearms” action skill and then you removed Firearms from the list. Was that maybe the problem you were seeing? (I mean … not with Firearms specifically but with any action skill that got removed.)
1 Like
While tweaking this one, I found another one I can’t seem to resolve.
Using the ranks plugin, everything looks right, except the web profile shows “Rank::” (with two colons). I tried changing the locale file so it read “Rank” with no colon, which fixed it on the web, but meant the in-game profile looked wrong.
Where is this phantom colon? 
Re: the phantom action skill… Gotcha. Yeah, there’s a little extra processing required if you want to remove an action skill that people already have. I’ll make the error message more useful in the next patch. I also added a “Removing an Ability” section to the FS3 Skills Config tutorial to explain what to do. (For chars still in chargen, just having them do reset should fix it, as you discovered.)
Re: the phantom colon on Ranks: … that’ll be fixed in the next patch as part of a general cleanup of the demographic titles. There were a couple places in the code that were inconsistently using colons, and it required a few tweaks on both the portal side and the game side.
1 Like