Page 1 of 1
Quest of Kathzora
Posted: Mon May 18, 2015 10:48 pm
by trancelistic
Hey all. I'm happy to enounce that my dungeon is as good as done.
However I've stumbled on a tiny bug.
I'm not able to solve this one ( and another one, but that is less important)
The problem accurs when 2 timers activate. The gameplay will go stutter ish like. ( fps skip wise). When the puzzle is done the script will deactiave the 2 timers and the fps, smooth gameplay return. But when they are active the game really stutters.
I have no clue what I've did wrong. ( it sounds like an endless loop or so, stressing the cpu or so, but the loop repeat only each 60 seconds and later its deactivated if the puzzle is solved
Any 1 experienced this before?
I need help with this one. My dungeon is as good as done ( @97%)
Thanks<3
Re: Quest of Kathzora
Posted: Tue May 19, 2015 1:29 am
by minmay
You have a timer connected to a routine with really terrible performance. Write that routine better so that it doesn't do that.
Re: Quest of Kathzora
Posted: Sat Jun 06, 2015 1:19 am
by trancelistic
Thanks for the feedback Minway.
The timer(s) are just connected to s script. Enable/disable on a timecount that the lights(effects) go on and off.
It never gave any issue untill I extended my dungeon later on.
NOw it does make the room choppy while the timers/script is active. It is still in realtime. But the fps game play.. kinda chockes.. like if you move forward 1 tile.. its like you chop/teleport step by step. But in realtime ofcourse.
OFcourse if the puzzle is solved the timers stop and all is ok again.
I have no idea why this happens.
Maybe you know this. Because you are 1 of the pro's here,
I have no idea....
All my dungeon runs fluent.. only that part not.
Re: Quest of Kathzora
Posted: Sat Jun 06, 2015 2:00 am
by minmay
WTF do you expect me to do if you won't tell me what's in the script? Nobody can fix your code if they can't even see it!
Re: Quest of Kathzora
Posted: Sat Jun 06, 2015 2:04 am
by Komag
Just try to really think through what is really happening with your code - is there something it will be trying to do "every frame" and thus bog down the processor? Is there some sort of accidental "endless loop" going on?
Re: Quest of Kathzora
Posted: Wed Jun 17, 2015 2:05 am
by trancelistic
I have respect for you both,,, just Mini,, is so offensive,,
Anyhows:
I had this old demo a while ago, last even,. everything went smooth, because this old video shows it... the same timers. the same script(s).
Now it doesn't work as I want it to work.,, THat phase in /on my dungeon is stutterish.. wich is odd. Its the same script..:/
Now my dungeon chops fps wise while the timersare active. THe realtime is stil the same. But as you can see in the video.. it never did it. ( ofcourse that is an old video... i updated the dungeon meanwhile) But the timers are truely 100% the same.
It has no hooks, or w/e it just a timer on THAT event. and is disabled when the puzzle or battle is done... :/
I know you are way smarter then me. You all are.. But don't be a dick to me. Can u help me out?...
I know I could make alot of people happy to play my "dungeon".. THink of that please..
Greetz me.
Re: Quest of Kathzora
Posted: Wed Jun 17, 2015 4:51 am
by minmay
If you do not want to rewrite the script yourself, your only option is to post the script here so someone else can do it. We cannot possibly fix your code for you if you won't let us see it. You wouldn't call a plumber on the phone and ask "my toilet is broken, what's wrong with it?" and refuse to give any further information or let them come to your house to look at the toilet. This is the same situation.
In the video it appears that you are spawning and destroying light sources. This is very resource intensive, especially if the light sources have shadow casting on, and very likely to cause stuttering as a result.
Re: Quest of Kathzora
Posted: Tue Jun 23, 2015 3:19 am
by trancelistic
I like to thank all for feedback. Yes all.
I stumbeld on something very silly because of the editor. I had no idea that light had a value for on/off as in /activate/deactivate because the editor doesn't show that, unlike other stuff.... And no 1 really told me meanwhile, just flamed me...
So, a year ago or so, I script the light with spawn ID and destroy that ID wich took alot of lines, in fact 6 x a light x 255 lines. So yeah the game stutterd while the timers were active... ( thanks for the flame and no help).
Anyhows I've solved it now. Each (6 light) has now only 1 timer with a tiny script as big as 8 lines or so... Not 6x 255 linesx 6 timers as i did more then a year ago... cuz no 1 helpt me.
Its sad that no 1 could help me on this. Now I've solved this on my own. SO im proud that I'm learning.
I used to think only nice people were here. But only the frustated onces reply to me:/.... I don't deserve this. You haven't even tried my mod/dungeon. jeez...
-- As a side note. I know alot of pro's do make mods. Specialy MinMay is a pro to me, I respect you dude. I'm no where near you, just wished you was less hard on me:/
But it doesn't mean they should be inpolite. Hey... I'm trying.
Im sure you will like my mod..I'm sure Komag does. Because I've been reading alot of his comments and feedbacks of how he want a dungeon to be. Not to hard but still intresting...
My 2 cents thats all<3
Gimme some slack please?
ps: please excuse my English. Its not my tongue... so to speak.
ps2: I could not pass to code to minmay because it was 6 x 255 lines haha...
edit: sorry If i felt offended by you and others. I know you are all good guys. I just lost motivation because of the "wtf'replies if i asked for help on this forum., as a side note I'm no where as good as you guys. But i try for a year now. Its nearly completed all on my own with some help little help on facebook and 1 pm friend on the forum. But i did all on my own.
pls try to understand. I'm Not so good as you guys. But my motivation is sure here..
Re: Quest of Kathzora
Posted: Tue Jun 23, 2015 6:57 am
by minmay
Nobody was flaming you. The reason you didn't get help is that you didn't give any of the information that was needed.