* *
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 29, 2017, 11:31:25 AM

Login with username, password and session length

killentitiy self and suicide issues

  • 33 Replies
  • 1401 Views
*

Offline White Dragon

  • OpenBOR Developer
  • Hero Member
  • *****
  • 1288
  • TMNT: Shell Shocked Project
    • Teenage Mutant Ninja Turtles: Shell Shocked [The Arcade Game]
Re: killentitiy self and suicide issues
« Reply #15 on: December 19, 2016, 01:30:38 PM »
try this at first frame of spawn animation and you will see

Code: [Select]
void changeName (void iName)
// Change entity name
// 24.09.2013 - Douglas Baldan - O Ilusionista
{
        void    vSelf   = getlocalvar("self");
        changeentityproperty(vSelf, "name", iName);
}

It works well with latest build!!
Teenage Mutant Ninja Turtles: Shell Shocked [The Arcade Game]


*

Offline nsw25

  • Hero Member
  • *****
  • 1678
    • Thatcher Productions
Re: killentitiy self and suicide issues
« Reply #16 on: January 08, 2017, 06:56:49 PM »
thought I would bump this as I still have issues on latest build.

Dust for example doesn't always disappear.

Code: [Select]
name dust
health 0
type none
shadow 0

alpha  1

lifespan 2

animationscript data/scripts/script.c


anim idle
loop 0
delay 3
offset 48 87
frame data/chars/misc/s1.png
frame data/chars/misc/s2.png
frame data/chars/misc/s3.png
frame data/chars/misc/s4.png
frame data/chars/misc/s5.png
frame data/chars/misc/s6.png
frame data/chars/misc/s7.png
frame data/chars/misc/s8.png
frame data/chars/misc/s9.png
frame data/chars/misc/s10.png
frame data/chars/misc/s11.png
frame data/chars/misc/s12.png
frame data/chars/misc/s13.png
frame data/chars/misc/s14.png
frame data/chars/misc/s15.png
frame data/chars/misc/s16.png
frame data/chars/misc/s17.png
frame data/chars/misc/s18.png
frame data/chars/misc/s19.png
delay 2
frame data/chars/misc/s20.png
frame data/chars/misc/s21.png
frame data/chars/misc/s22.png
@cmd killentity getlocalvar("self")
frame data/chars/misc/empty.png

#|edited by openBor Stats v 0.67

« Last Edit: January 08, 2017, 06:59:42 PM by nsw25 »

*

Offline O Ilusionista

  • Global Moderator
  • Hero Member
  • *****
  • 4571
  • >> I WILL BE AWAY FOR SOME TIME <<
    • BMT - Brazil Mugen Team
Re: killentitiy self and suicide issues
« Reply #17 on: January 10, 2017, 07:57:44 AM »
How you are spawning it?

*

Offline White Dragon

  • OpenBOR Developer
  • Hero Member
  • *****
  • 1288
  • TMNT: Shell Shocked Project
    • Teenage Mutant Ninja Turtles: Shell Shocked [The Arcade Game]
Re: killentitiy self and suicide issues
« Reply #18 on: January 10, 2017, 02:38:14 PM »
thought I would bump this as I still have issues on latest build.

Dust for example doesn't always disappear.

Code: [Select]
name dust
health 0
type none
shadow 0

alpha  1

lifespan 2

animationscript data/scripts/script.c


anim idle
loop 0
delay 3
offset 48 87
frame data/chars/misc/s1.png
frame data/chars/misc/s2.png
frame data/chars/misc/s3.png
frame data/chars/misc/s4.png
frame data/chars/misc/s5.png
frame data/chars/misc/s6.png
frame data/chars/misc/s7.png
frame data/chars/misc/s8.png
frame data/chars/misc/s9.png
frame data/chars/misc/s10.png
frame data/chars/misc/s11.png
frame data/chars/misc/s12.png
frame data/chars/misc/s13.png
frame data/chars/misc/s14.png
frame data/chars/misc/s15.png
frame data/chars/misc/s16.png
frame data/chars/misc/s17.png
frame data/chars/misc/s18.png
frame data/chars/misc/s19.png
delay 2
frame data/chars/misc/s20.png
frame data/chars/misc/s21.png
frame data/chars/misc/s22.png
@cmd killentity getlocalvar("self")
frame data/chars/misc/empty.png

#|edited by openBor Stats v 0.67



please  check the exists flag and feedback
example getentityproperty(ent,"exists")
Teenage Mutant Ninja Turtles: Shell Shocked [The Arcade Game]


*

Offline nsw25

  • Hero Member
  • *****
  • 1678
    • Thatcher Productions
Re: killentitiy self and suicide issues
« Reply #19 on: January 10, 2017, 02:40:41 PM »
I dont understand....

Can you please write a example of how exists is implimented in a move in txt file ?

*

Offline White Dragon

  • OpenBOR Developer
  • Hero Member
  • *****
  • 1288
  • TMNT: Shell Shocked Project
    • Teenage Mutant Ninja Turtles: Shell Shocked [The Arcade Game]
Re: killentitiy self and suicide issues
« Reply #20 on: January 10, 2017, 07:49:18 PM »
example ina script event of dust check:
drawstring(10,50,0,getentityproperty(dust,"exists"));
Teenage Mutant Ninja Turtles: Shell Shocked [The Arcade Game]


*

Offline nsw25

  • Hero Member
  • *****
  • 1678
    • Thatcher Productions
Re: killentitiy self and suicide issues
« Reply #21 on: January 10, 2017, 09:18:11 PM »
example ina script event of dust check:
drawstring(10,50,0,getentityproperty(dust,"exists"));

sorry but I still don't understand....

besides I shouldn't need additional scripts etc just to kill an entity when it should already be done with the lifespan and killentity script... so it will take 3 things just to make something work ? and why doesn't it work all the time as is ? it seems like an engine issue and additional scripting etc will be just masking the problem right ?

« Last Edit: January 10, 2017, 09:19:49 PM by nsw25 »

*

Online Damon Caskey

  • Administrator
  • Hero Member
  • *****
  • 1639
    • DC Current
Re: killentitiy self and suicide issues
« Reply #22 on: January 10, 2017, 11:15:20 PM »
Quote from: nsw25 link=topic=3159.msg44433#msg44433
...

We're not try to mask the problem, that bit of script is to FIND the problem.

Specifically it's to display debug info on your screen that will help us ferret out the breakpoint.

DC
Projects in progress are now available here: https://github.com/DCurrent

*

Offline nsw25

  • Hero Member
  • *****
  • 1678
    • Thatcher Productions
Re: killentitiy self and suicide issues
« Reply #23 on: January 10, 2017, 11:21:13 PM »
ok so how do I implement it ? the instructions don't make sense to me (I am not script saavy)

*

Offline White Dragon

  • OpenBOR Developer
  • Hero Member
  • *****
  • 1288
  • TMNT: Shell Shocked Project
    • Teenage Mutant Ninja Turtles: Shell Shocked [The Arcade Game]
Re: killentitiy self and suicide issues
« Reply #24 on: January 11, 2017, 10:58:19 AM »
ok, in your dust entity write:

Code: [Select]
name dust
health 0
type none
shadow 0

alpha  1

lifespan 2

animationscript data/scripts/script.c

ondrawscript @script
void main() {
  void self = getlocalvar("self");

  drawstring(10,50,0,"dust exists: "+getentityproperty(self,"exists"));
}
@end_script


anim idle
loop 0
delay 3
offset 48 87
frame data/chars/misc/s1.png
frame data/chars/misc/s2.png
frame data/chars/misc/s3.png
frame data/chars/misc/s4.png
frame data/chars/misc/s5.png
frame data/chars/misc/s6.png
frame data/chars/misc/s7.png
frame data/chars/misc/s8.png
frame data/chars/misc/s9.png
frame data/chars/misc/s10.png
frame data/chars/misc/s11.png
frame data/chars/misc/s12.png
frame data/chars/misc/s13.png
frame data/chars/misc/s14.png
frame data/chars/misc/s15.png
frame data/chars/misc/s16.png
frame data/chars/misc/s17.png
frame data/chars/misc/s18.png
frame data/chars/misc/s19.png
delay 2
frame data/chars/misc/s20.png
frame data/chars/misc/s21.png
frame data/chars/misc/s22.png
@cmd killentity getlocalvar("self")
frame data/chars/misc/empty.png

and when your killed dust is still on screen, post what message you see (or a screenshot).

PS. I checked the kill code. It works fine..
Simply in engine if exists flag is 0 this enity is no longer updated and it can be overwritten.

Ps2. Test this private build for killentity(): http://www.mediafire.com/file/gpxc7r4h7k6loli/test.rar
« Last Edit: January 11, 2017, 04:47:19 PM by White Dragon »
Teenage Mutant Ninja Turtles: Shell Shocked [The Arcade Game]


*

Offline nsw25

  • Hero Member
  • *****
  • 1678
    • Thatcher Productions
Re: killentitiy self and suicide issues
« Reply #25 on: January 11, 2017, 05:11:20 PM »
added that bit into dust but couldn't replicate the issue (its a rare occurrence sometimes with dust, sometimes with hitflashes and effects, totally random)

then tested your test build but it actually crashed game during gameplay. was performing a combo, game froze, stopped working and had to close

heres last part of log though doesn't say anything that I can tell

Code: [Select]
Loading models............... Done!
Object engine init........... Done!
Input init................... No Joystick(s) Found!
Done!
Create blending tables....... Done!
Save settings so far........ Done!


Level Loading:   'data/levels/zombie.txt'
Total Ram: 4195418112 Bytes
 Free Ram: 1385533440 Bytes
 Used Ram: 140218368 Bytes

Loading 'BringIn' from data/chars/misc/bringIn.txt
Loading 'story' from data/chars/misc/story/story.txt
Loading 'rot' from data/chars/rot/rot.txt
Loading 'delay' from data/sprites/delay.txt
Loading 'rot2' from data/chars/rot/rot2.txt

Level Loaded:    'data/levels/zombie.txt'
Total Ram: 4195418112 Bytes
 Free Ram: 1359687680 Bytes
 Used Ram: 161681408 Bytes
Total sprites mapped: 2937

Allocating sprite : group...
Sprite allocated : #234426328
Allocating sprite : zom_2...
Sprite allocated : #234960024
Allocating sprite : asia...
Sprite allocated : #233100592

*

Offline White Dragon

  • OpenBOR Developer
  • Hero Member
  • *****
  • 1288
  • TMNT: Shell Shocked Project
    • Teenage Mutant Ninja Turtles: Shell Shocked [The Arcade Game]
Re: killentitiy self and suicide issues
« Reply #26 on: January 14, 2017, 02:17:01 PM »
OK so I need to understand the debug Msg just when your dust is still alive
Teenage Mutant Ninja Turtles: Shell Shocked [The Arcade Game]


*

Offline White Dragon

  • OpenBOR Developer
  • Hero Member
  • *****
  • 1288
  • TMNT: Shell Shocked Project
    • Teenage Mutant Ninja Turtles: Shell Shocked [The Arcade Game]
Re: killentitiy self and suicide issues
« Reply #27 on: January 16, 2017, 11:05:21 AM »
Please, tell me if with this new private test build you can see the kill issue:
http://www.mediafire.com/file/gpxc7r4h7k6loli/test.rar
Teenage Mutant Ninja Turtles: Shell Shocked [The Arcade Game]


*

Offline nsw25

  • Hero Member
  • *****
  • 1678
    • Thatcher Productions
Re: killentitiy self and suicide issues
« Reply #28 on: March 03, 2017, 07:56:34 PM »
been able to duplicate this issue easily in a particular level and with a character so have attached it to their different effects and got this error message



you can see two flashes remain on screen. the blue hitflash and the electricity spark on ground (ground electricity spark had your detection script btw, didn't add to that hitflash)

I can send you updated version of my game if you like to poke around White Dragon ?

« Last Edit: March 03, 2017, 08:04:11 PM by nsw25 »

*

Offline O Ilusionista

  • Global Moderator
  • Hero Member
  • *****
  • 4571
  • >> I WILL BE AWAY FOR SOME TIME <<
    • BMT - Brazil Mugen Team
Re: killentitiy self and suicide issues
« Reply #29 on: March 03, 2017, 10:37:46 PM »
When I was playing with your mod, I had this bug with the dust effect. To avoid this, I set a lifespan too.

 

Recent

Members
Stats
  • Total Posts: 44256
  • Total Topics: 3011
  • Online Today: 58
  • Online Ever: 316
  • (January 04, 2013, 09:43:02 AM)
Users Online
Users: 2
Guests: 32
Total: 34