Node Limit
Author | Topic: Node Limit |
---|---|
The Establishment
Member # 6
|
written Sunday, May 27 2007 23:18
Profile
A really basic thing to "fix" is to get rid of the pesky node limit. I have frequently found 50 to be too restrictive. While removing this altogether would be easy, the point of the node limit is to get rid of infinite loops. I propose we keep some kind of ceiling in, but make it quite high. We can always raise it if the need arises. I propose we make it 2500. That should give people ample space to do nodes. I need to update a couple things, but it should be an easy fix. What are people's feelings on this? -------------------- Your flower power is no match for my glower power! Posts: 3726 | Registered: Tuesday, September 18 2001 07:00 |
...b10010b...
Member # 869
|
written Monday, May 28 2007 03:50
Profile
Homepage
If you're going to raise the cap that high, you may as well remove it altogether. Infinite loops involving time-consuming nodes like stairways or sounds will effectively require the game to be force-quit if they're allowed to go on that long anyway. -------------------- The Empire Always Loses: This Time For Sure! Posts: 9973 | Registered: Saturday, March 30 2002 08:00 |
Post Navel Trauma ^_^
Member # 67
|
written Monday, May 28 2007 07:13
Profile
Homepage
Something I've wondered about is whether it makes sense to have a limit like 200, and a new special node that's "Increase the limit in this chain by another 100", that can't be in a chain after any node that's not that one. That way, you could get as long as you needed, without being able to go infinite. -------------------- Barcoorah: I even did it to a big dorset ram. New Mac BoE Posts: 1798 | Registered: Thursday, October 4 2001 07:00 |
Off With Their Heads
Member # 4045
|
written Monday, May 28 2007 07:21
Profile
Homepage
I like that idea, or Stareye's. I don't like getting rid of it entirely, because I've caused infinite loops in BoA on occasion, and the game has successfully caught me on it. -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
The Establishment
Member # 6
|
written Monday, May 28 2007 07:45
Profile
This comes down to a design philosophy issue. The point is how much do we as the developers trust the designers. In BoA, Jeff still has an upper limit on how many calls he tolerates before the script terminates. With regard to this issue, our options are as follows: 1) Full trust in the designer. Eliminate the ceiling and if the designer messes up, it is his/her fault. 2) Keep some control by the developer by setting an arbitrary upper limit. Set an upper limit to protect players and if the designers need it higher we can set it. 3) Some call to reset the node counter. There is still the possibility of infinite loops, but the designer has to work a bit harder to get into this territory. After speaking with Khoth, one thing that probably should be added is for Blades to handle any menu calls after each node. Such that if the designer would screw up, the player can just abort the game rather than just freeze. -------------------- Your flower power is no match for my glower power! Posts: 3726 | Registered: Tuesday, September 18 2001 07:00 |
Law Bringer
Member # 2984
|
written Monday, May 28 2007 09:26
Profile
Homepage
The "increase by another 200" sounds a bit messy to me. Could we instead have an option (perhaps even a global setting) that says "turn off node limits"? It's a useful safeguard for inexperienced designers (though perhaps increase it to 500 or so), but if they know what they're doing... We can have another check in the game that asks whether the game should allow this setting, with the default set to a warning - "The designer of this scenario has [...]. Do you wish to proceed?". So the player has some idea what they're getting into. [ Monday, May 28, 2007 09:30: Message edited by: Dr. Johann Georg Faust ] -------------------- Encyclopaedia • Archives • Members • RSS [Topic / Forum] • Blog • Polaris • NaNoWriMo Look on my works, ye mighty, and despair. I have a love of woodwind instruments. Posts: 8752 | Registered: Wednesday, May 14 2003 07:00 |
Off With Their Heads
Member # 4045
|
written Monday, May 28 2007 10:13
Profile
Homepage
Oh, right. My choice would be this: remove the limit entirely, but add a "Pause" feature that allows the game to come to a halt in the middle of whatever it's doing (running nodes, combat, etc.) in order to access menus or other applications. Attempting to quit while paused would have the same effect as quitting during combat (no opportunity for saving). -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
Board Administrator
Member # 1
|
written Monday, May 28 2007 13:10
Profile
Homepage
If you change the scenario format, I strongly suggest providing extensive documentation regarding exactly what changes you make to the format, and tinkering with the flags at the beginning of the scenario file to identify its format. Then anyone working on the Windows side will have a better idea of what is going on when they try to make a version that can understand your new format's scenarios. (A change of format means any change that would make new scenarios incompatible with older copies of Blades. Changing the node limit would do that.) Not saying you shouldn't change the limit. Sounds like a very good idea. Just a general warning. - Jeff Vogel -------------------- Official Board Admin spidweb@spiderwebsoftware.com Posts: 960 | Registered: Tuesday, September 18 2001 07:00 |
Off With Their Heads
Member # 4045
|
written Monday, May 28 2007 13:19
Profile
Homepage
EDIT: Oops. Never mind me. [ Monday, May 28, 2007 13:24: Message edited by: Kelandon ] -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
The Establishment
Member # 6
|
written Monday, May 28 2007 13:22
Profile
I agree 100%. The thing with the node limit is we can always raise it or remove it, but never lower it or put it back. I want to find out what people would prefer. I'm going to think on this matter and what people have said here. -------------------- Your flower power is no match for my glower power! Posts: 3726 | Registered: Tuesday, September 18 2001 07:00 |
Law Bringer
Member # 2984
|
written Monday, May 28 2007 13:28
Profile
Homepage
I haven't yet looked at the code, but I'm a bit surprised that the node limit is so closely entwined with the scenario format... -------------------- Encyclopaedia • Archives • Members • RSS [Topic / Forum] • Blog • Polaris • NaNoWriMo Look on my works, ye mighty, and despair. I have a love of woodwind instruments. Posts: 8752 | Registered: Wednesday, May 14 2003 07:00 |
The Establishment
Member # 6
|
written Monday, May 28 2007 13:32
Profile
It's not, as far as I can tell. It looks like a hard coded value of 50. I don't think it pops up anywhere else as I haven't looked everywhere, but I think this one specific thing is it. I believe (correct me if I'm wrong) that Jeff was speaking in general about making changes. -------------------- Your flower power is no match for my glower power! Posts: 3726 | Registered: Tuesday, September 18 2001 07:00 |
Off With Their Heads
Member # 4045
|
written Monday, May 28 2007 14:17
Profile
Homepage
I had the same reaction as Aran (hence the deleted post above), but I think I figured it out. I think that Jeff doesn't mean a literal change in the format of the exs file, but rather what he defined: a change that would make new scenarios incompatible with older copies of Blades. A new scenario made without the node limit would break an older copy of Blades that still has the node limit when you get to the 50+ node part of the scenario. Now, it'd be easy enough to put a warning in the readme or in the intro messages that one should use only the most recent version of BoE (or only some particular version of BoE), so I don't think that this is much of a problem. Nevertheless, it is worth documenting. [ Monday, May 28, 2007 14:19: Message edited by: Kelandon ] -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
Law Bringer
Member # 2984
|
written Monday, May 28 2007 14:47
Profile
Homepage
I have no real qualms with breaking compatibility of new scenarios with old game versions. Now, old scenarios with new game versions is another matter, since updating ancient works whose designers have disappeared is virtually impossible. But the shift to open source will likely mean an end to CD-distributed and pretty much any other media that isn't downloaded from the net (who'd produce and store them?), and since the game is completely free, it's no big hassle to re-download and re-install the game. Of course, we would need to implement compatibility checking so it actually tells the user that they need to update, instead of breaking randomly. -------------------- Encyclopaedia • Archives • Members • RSS [Topic / Forum] • Blog • Polaris • NaNoWriMo Look on my works, ye mighty, and despair. I have a love of woodwind instruments. Posts: 8752 | Registered: Wednesday, May 14 2003 07:00 |
Warrior
Member # 7633
|
written Monday, May 28 2007 15:20
Profile
As far as I can tell, increasing the limit on the number of nodes executed in a single encounter is just a matter of increasing the constant at special.c:1655: 1655| if (num_nodes >= 50) { The only effect of increasing this value would be that encounters longer than 50 nodes would no longer error out. Otherwise, functionality would be identical.There's a completely separate limit of 50 special nodes per town, which can't be increased without modifying the scenario format. Fixing this would probably be best accomplished by "dynamicizing" allocations throughout the program - probably a good idea in the long run, but not a small task. More on this in OBoE. Posts: 66 | Registered: Saturday, November 4 2006 08:00 |
Babelicious
Member # 39
|
written Monday, May 28 2007 15:32
Profile
Homepage
I'm with Thuryl. Eliminate the upper limit entirely and implement some basic heuristics to prevent trivial infinite loops. And have a user-editable ceiling after which some variety of 'this may be an infinite loop' dialog is presented. -------------------- Pygmalion | Desperance | Djur Posts: 1074 | Registered: Wednesday, October 3 2001 07:00 |
Shaper
Member # 73
|
written Monday, May 28 2007 15:37
Profile
I have an idea for the node limit. What if we include a node chain limit and the Set Node Limit node, and force the designer to attach an SDF to the node to change the limit so it only goes off once, and then every time after that, when it checks to see if the flag has been set to 1 and sees it has, it simply goes to the next node without changing the limit? This would allow the designer to set however many nodes they need without allowing for infinite loops. -------------------- My Myspace, with some of my audial and visual art The Lyceum - The Headquarters of the Blades designing community The Louvre - The Blades of Avernum graphics database Alexandria - The Blades of Exile Scenario database BoE Webring - Self explanatory Polaris - Free porn here Odd Todd - Fun for the unemployed (and everyone else too) They Might Be Giants - Four websites for one of the greatest bands in existance -------------------- 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Posts: 2957 | Registered: Thursday, October 4 2001 07:00 |
The Establishment
Member # 6
|
written Monday, May 28 2007 16:26
Profile
You are correct, Duskwolf. I think I have decided on taking out the error part of the code entirely. The way to combat the infinite loop is after each node call, to have Blades handle any menu command is per Khoth's discussion. This way the player can at least exit out of an infinite loop. Now I just have to figure out how to do the latter. -------------------- Your flower power is no match for my glower power! Posts: 3726 | Registered: Tuesday, September 18 2001 07:00 |
The Establishment
Member # 6
|
written Sunday, June 3 2007 20:15
Profile
Update: I took out the node limit entirely. It is now possible to quite the game during a node sequence by hitting the command key during execution. The same dialog for the quitting in combat comes up with options to quit or cancel. I wanted to make this nicer, but I had trouble getting it to handle menu commands. Basically, this is primarily used as an emergency feature for infinite loops, so I didn't want to put too much effort into it. The following changes have been made to the code base: run_special in specials.c has been modified. Node limit has been added, num_nodes has been changed to type int, and a call to a new function node_interrupt has been added.node_interrupt has been added to bldsexil.c that checks for the interrupt of the command key and gives the quit prompt. This was also added to bldsexil.h.I'll send what I have to Khoth. I think this is probably good. If anyone wants to make it better, feel free, but I think I am (for the most part) finished with this part of the project. -------------------- Your flower power is no match for my glower power! Posts: 3726 | Registered: Tuesday, September 18 2001 07:00 |
Off With Their Heads
Member # 4045
|
written Sunday, June 3 2007 21:41
Profile
Homepage
Sounds good to me. -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |