Deltagamer163 Posted June 25, 2020 Author Share Posted June 25, 2020 (edited) UnvalidUserName Thanks for the help! The script worked like a charm :) Edited June 25, 2020 by Deltagamer163 Link to comment Share on other sites More sharing options...
Deltagamer163 Posted June 25, 2020 Author Share Posted June 25, 2020 (edited) Also, there is another problem that exists for some reason: My slot machine says there is an invalid chip in the casino data list. It was working before, but now doesn't work. I have the mod at the bottom of the load order, so nothing is overwriting it, and I made sure the casino data was using RoomChips which are also in the Casino Chip section. The room casino uses the main Tops casino winnings quest so that if you can't gamble at the Tops then you can't gamble in the room, and it was working fine, so I have zero idea why it no longer works. Also, the slot machine uses a script I made that is copy+paste from the regular Tops slot machine, except it uses the Room Casino data instead of the Tops' Edited June 25, 2020 by Deltagamer163 Link to comment Share on other sites More sharing options...
dubiousintent Posted June 26, 2020 Share Posted June 26, 2020 That is a common "debugging" scenario. Take a break and come back to look at it with "fresh eyes", as if you were explaining it to someone who has no idea what it is about. Forcing yourself to explain it will also force you to examine what it actually says as opposed to what you intended it to say/do. So, what changed? Typical causes are "typos", missing "matching parens/braces/brackets", and stray punctuation marks. Also indentation errors leading to mistaken flow control (e.g "those statements are actually part of an inner/outer nested section of code than they appear to be in"). You may find you need to check the values of variables at various tests and points in the scirpt. See the "TIP Debugging data to file" entry under the "Scripting" section of the wiki "Getting started creating mods using GECK" article. I would look more closely at the script from the "regular Tops slot machine, except it uses the Room Casino data instead of the Tops" for your invalid chip. Most likely you missed renaming a variable entry. -Dubious- Link to comment Share on other sites More sharing options...
Deltagamer163 Posted June 26, 2020 Author Share Posted June 26, 2020 I don't think I missed anything in the script, because it is EXACTLY the same as the regular Tops slot machine script. The only difference is that TheTopsCasinoData is replaced with TheTopsRoomCasinoData. I checked the casino data itself and verified the chip was correct. Studying how a regular slot machine works in the game, it should be working, as everything is the same except for the casino. Link to comment Share on other sites More sharing options...
Deltagamer163 Posted June 26, 2020 Author Share Posted June 26, 2020 Alright, something is really up. NO slot machine works, and they all give the invalid chip error. Something in the mod is causing a problem. I'll try to find out. Link to comment Share on other sites More sharing options...
Recommended Posts