Jump to content
  • 0

Help mini-game PacPoring


Haikenz

Question


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   82
  • Joined:  11/15/11
  • Last Seen:  

This is an old mini-game, and I really like it and tried to use it here, but it is with some errors, I would like your help to fix it

This is the first error that appears no more emulator when it connects

[Warning]: script: buildin_getmapxy: .m$pacporing4 is not a string variable.
[Debug]: Source (NPC): Aprendiz at poring_s01 (80,77)
[Warning]: script: buildin_getmapxy: .m$pacporing13 is not a string variable.
[Debug]: Source (NPC): Kasa at poring_s03 (144,118)
[Warning]: script: buildin_getmapxy: .m$pacporing52 is not a string variable.
[Debug]: Source (NPC): Fantasma at poring_s02 (93,39)
[Warning]: script: buildin_getmapxy: .m$pacporing33 is not a string variable.
[Debug]: Source (NPC): Kasa at poring_s03 (119,80)
[Warning]: script: buildin_getmapxy: .m$pacporing63 is not a string variable.
[Debug]: Source (NPC): Kasa at poring_s03 (144,39)
[Warning]: script: buildin_getmapxy: .m$pacporing32 is not a string variable.
[Debug]: Source (NPC): Fantasma at poring_s02 (119,80)
[Warning]: script: buildin_getmapxy: .m$pacporing3 is not a string variable.
[Debug]: Source (NPC): Aprendiz at poring_s01 (119,80)
[Warning]: script: buildin_getmapxy: .m$pacporing53 is not a string variable.
[Debug]: Source (NPC): Kasa at poring_s03 (93,39)
[Warning]: script: buildin_getmapxy: .m$pacporing42 is not a string variable.
[Debug]: Source (NPC): Fantasma at poring_s02 (80,77)
[Warning]: script: buildin_getmapxy: .m$pacporing1 is not a string variable.
[Debug]: Source (NPC): Aprendiz at poring_s01 (144,118)
[Warning]: script: buildin_getmapxy: .m$pacporing12 is not a string variable.
[Debug]: Source (NPC): Fantasma at poring_s02 (144,118)
[Warning]: script: buildin_getmapxy: .m$pacporing43 is not a string variable.
[Debug]: Source (NPC): Kasa at poring_s03 (80,77)
[Warning]: script: buildin_getmapxy: .m$pacporing62 is not a string variable.
[Debug]: Source (NPC): Fantasma at poring_s02 (144,39)
[Warning]: script: buildin_getmapxy: .m$pacporing5 is not a string variable.
[Debug]: Source (NPC): Aprendiz at poring_s01 (93,39)
[Warning]: script: buildin_getmapxy: .m$pacporing23 is not a string variable.
[Debug]: Source (NPC): Kasa at poring_s03 (158,77)
[Debug]: (map_mapname2mapid) mapindex_name2id: Map "" not found in index list!
[Debug]: Source (NPC): Stomring#pacporingConfig at poring_s01 (17,223)
[Warning]: script: buildin_getmapxy: .m$pacporing22 is not a string variable.
[Debug]: Source (NPC): Fantasma at poring_s02 (158,77)
[Warning]: script: buildin_getmapxy: .m$pacporing2 is not a string variable.
[Debug]: Source (NPC): Aprendiz at poring_s01 (158,77)
[Warning]: script: buildin_getmapxy: .m$pacporing6 is not a string variable.
[Debug]: Source (NPC): Aprendiz at poring_s01 (144,39)

already inside the game, this error already seen when it takes the crystal to be invincible (same in the pacman)

[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Aprendiz at poring_s01 (0,0)
[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Aprendiz at poring_s01 (0,0)
[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Aprendiz at poring_s01 (0,0)
[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Aprendiz at poring_s01 (0,0)
[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Aprendiz at poring_s01 (0,0)
[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Aprendiz at poring_s01 (0,0)

[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Fantasma at poring_s02 (0,0)
[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Fantasma at poring_s02 (0,0)
[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Fantasma at poring_s02 (0,0)
[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Fantasma at poring_s02 (0,0)
[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Fantasma at poring_s02 (0,0)
[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Fantasma at poring_s02 (0,0)

[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Kasa at poring_s03 (0,0)
[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Kasa at poring_s03 (0,0)
[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Karsa at poring_s03 (0,0)
[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Kasa at poring_s03 (0,0)
[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Kasa at poring_s03 (0,0)
[Error]: script:run_script_main: infinity loop !
[Debug]: Source (NPC): Kasa at poring_s03 (0,0)
[Debug]: Source (NPC): Stomring#pacporingConfig at poring_s01 (17,223)
[Debug]: NPCEvent '#pacporingbonus12::OnEnable' not found! (source: Stomring#pacporingConfig)
[Debug]: NPCEvent '#pacporingbonus22::OnEnable' not found! (source: Stomring#pacporingConfig)
[Debug]: NPCEvent '#pacporingbonus32::OnEnable' not found! (source: Stomring#pacporingConfig)
[Debug]: NPCEvent '::On2PacPoringEnable' not found! (source: Stomring#pacporingConfig)

And in this last error is when it completes the level, and goes to the next level

 

NPC: https://pastebin.com/0gm0q5y0

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  120
  • Reputation:   48
  • Joined:  07/23/13
  • Last Seen:  

1. The first argument of getmapxy needed to be string variable

Quote

getmapxy(getd(".m$"+strnpcinfo(3)+"$"),getd(".x"+strnpcinfo(3)),getd(".y"+strnpcinfo(3)),1); //line 312


2. System detect Infinite loop

Quote

Can try to apply freeloop on these npc at suitable location, I can't read the language also don't have the map so can't help you on this.


3.  Change OnEnable to OnEnablePacBonus

Quote

donpcevent "#pacporingbonus1"+.@k$+"::OnEnablePacBonus"; // line 206
donpcevent "#pacporingbonus2"+.@k$+"::OnEnablePacBonus";// line 207
donpcevent "#pacporingbonus3"+.@k$+"::OnEnablePacBonus";// line 208

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   82
  • Joined:  11/15/11
  • Last Seen:  

16 hours ago, yuchinin said:

1. The first argument of getmapxy needed to be string variable


2. System detect Infinite loop


3.  Change OnEnable to OnEnablePacBonus

 

I was able to fix most of the errors, but appearing now

[Debug]: (map_mapname2mapid) mapindex_name2id: Map "" not found in index list!

Modified script: https://pastebin.com/kxWUj399

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  120
  • Reputation:   48
  • Joined:  07/23/13
  • Last Seen:  

8 hours ago, Dream Catcher said:

I was able to fix most of the errors, but appearing now


[Debug]: (map_mapname2mapid) mapindex_name2id: Map "" not found in index list!

Modified script: https://pastebin.com/kxWUj399

More info is needed for which npc require the mapname. I don't have time to scan through all line to check that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...