There are no looping constructs.
I'll try looking into the other problems as soon as I can.
The Void
13 posts
• Page 1 of 1
Re: Dialogue scripts freezingThere are no looping constructs.
I'll try looking into the other problems as soon as I can.
Re: Dialogue scripts freezingIf you have been really too busy,
And you feel your head being dizzy, It's recommended to have a rest, I have a good offer-play the Quest! : )
Re: Dialogue scripts freezingI'm kind of strapped for time right now but took a quick look at your file. You have all items checked for sale. That's probably one reason why a player would freeze. It would work in the editor but if someone is playing the base game in embedded mode and possibly even the standalone version, with all items checked for sale the game engine has to check across the base game and all expansions to find all the items for sale and it's just most likely going to cause a crash.
I don't think that has anything to do with your other crash but it would be a problem. Also, remember to keep game balance in mind. Offering high limits for resale is not going to keep the game balanced. : ) I know it's tempting. Almost every player right now is probably as rich as Croesus but always balance things.
Re: Dialogue scripts freezingFor the second problem: "addatributevalue" cannot change an attribute by more than +/- 10. It's hardcoded that way. Looking into the third.
Re: Dialogue scripts freezingAnd I've found the culprit for problem number three (sort of): Although the Quest script supports 32 bit integers (integers which are larger than 32767 or smaller than -32768), the support is bugged. Under certain circumstances (which are not exactly clear, that's why I said "sort of"), 32 bit integers get misread which results in script failure. That's what is happening in the money script with ten million. It happens to work with all the other values (hundred million, million and hundred thousand), but it fails with 10000000.
Probably no one really used large numbers in scripts until now (or they happened to be working), that's why it wasn't discovered. I'd rather not try and fix it, it could result in more obscure bugs... But no worries, there is an easy workaround. Any time you need a number larger than 32767 or smaller than -32768, build it up from smaller ones. For example 10000000 is 10000 * 1000. I replaced "10000000" with "10000 * 1000" in the script and now it works. (If you happen to need "10000001" you could use "10000 * 1000 + 1", for example. All large numbers can be built up in this way. Hopefully you'll not need too many large numbers. )
Re: The VoidWould it be possible to move this topic to viewforum.php?f=32 or maybe even to its own sub-forum there (like with Jacob's currently non-existent expansion which has viewforum.php?f=33)? It has changed from being a topic only about the problems I encounter when using the editor to a topic about "The Void" so it seems appropriate to move it away from the editor's forum.
Re: The VoidCreated subforum, moved topic.
Re: The VoidMuch appreciated Elendil!
Re: The VoidI'm having problems saving my expansion in the editor (the same one as in the first post of this topic. What I'm trying to achieve is to rewrite the shared dialogue topic "Money" with id `void_topic_money` to be the same as the dialogue topic "Wealth" with id `void_topic_wealth` in https://www.dropbox.com/s/5fx6y2k10xeek ... world?dl=0 or https://www.dropbox.com/s/qr25axstjun0a ... e.pak?dl=0. The editor seem to be fine up until I try to save, whereafter it will crash and the questworld file will not have been updated. I suspect I've reached some kind of storage limit for scripts but, short of splitting up the expansion in to multiple smaller ones (which is not ideal as this would involve travelling between them to access different dialogues), I'm not sure how to solve this issue to be honest, so I'd really appreciate some help.
13 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 0 guests |
||