Page 1 of 1
edit: Joramun's ESB ramblings
Posted: Thu Nov 25, 2010 3:45 pm
by Joramun
Hey, for once,
THIS IS NOT A BUG REPORT !
I noticed that, playing around with ESB and my "randomizer", some functions like "dsb_qswap" do not change (at least not immediately) the "hard-coded archetype" in ESB...
I know that because I've been using (if...elseif...end) on things like an instance's archetype in order to generate "circumstantial" content in my dungeon...
Which is ugly on my part, but cool because I can visualize the dungeon in ESB !
Anyway, I found various tricks around those "problems", and I'm implementing the last missing features to have playable dungeons.
It will be all about FIGHT and KEYS for now !

Re: Fun ESB facts...
Posted: Thu Nov 25, 2010 8:32 pm
by Sophia
What do you mean the "hard coded archetype"?
I'm having a hard time figuring out what you're trying to do...

Re: Fun ESB facts...
Posted: Thu Nov 25, 2010 11:01 pm
by Joramun
It was a problem in my algorithm, not in archetypes.
I'm going through a list of instances of some "arch" and when some operation is done, I qswap them into another "arch" in order to prevent a second execution.
For some reason, the loop that goes through instances sometime goes twice over the same instance AND operations that should not happen twice, do.
I think it's because I've been using dsb_spawn(arch,...) instead of dsb_spawn(id,arch,...) so that when I did some manipulation on my list (notably, deleting instances)
I would then free the id's and therefore the next created object would get it... weird stuff.
Anyway, I'm investigated the whole mess.
The problem of a random dungeon, is that errors are random

Re: Fun ESB facts...
Posted: Wed Dec 01, 2010 2:50 pm
by Joramun
Code: Select all
OBJ: 405 system archs
OBJ: 405 total archs
OBJ: 405 system archs
OBJ: 405 total archs
PROGRAM CRASH!
Location: 0 2 0
Reason: No free insts
Stack Dump:
ESBmain
ESBwproc
ed_menucommand
editor_load_dungeon
src_lua_file
lua.dsb_spawn(doorframe)
create_instance
next_object_inst

Re: Fun ESB facts...
Posted: Wed Dec 01, 2010 3:55 pm
by Gambit37
At some point indeterminate, the above discourse might make sense to me. But for now... *whoooooooooooosh*.
Re: Fun ESB facts...
Posted: Wed Dec 01, 2010 5:08 pm
by Joramun
It's just my random dungeon code getting too complex for esb and me to handle. (However, I'm catching up)
Re: Fun ESB facts...
Posted: Wed Dec 01, 2010 5:40 pm
by Jan
Well, the truth is that these facts are a very specific kind of "fun".

Re: Fun ESB facts...
Posted: Wed Dec 01, 2010 8:13 pm
by Joramun
Yeah I should probably rename that thread into "Joramun rambles with himself about things he doesn't even understand".
Re: edit: Joramun's ESB ramblings
Posted: Wed Dec 01, 2010 8:23 pm
by Sophia
If this is creating an actual problem for you, I can probably raise the maximum number of allowed instances.

Re: edit: Joramun's ESB ramblings
Posted: Wed Dec 01, 2010 9:00 pm
by Joramun
It's not really a problem. It happens when I make a big random dungeon. I'm trying to find a way around this, by removing some "intermediate instances" that I use only for visual convenience in ESB to see where are "rooms" etc. It was also the origin of the above problem: I was freeing some room by removing instances, but that would result in unexpected side effects when creating final objects (like doors etc.) (eg. an "intermediate instance" confused with a door or wallitem, and resulting in some awkward instance placement, like monsters inside walls or on doors...)