Jump to content




Game isn't working properly


  • You cannot reply to this topic
4 replies to this topic

#1 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 01 June 2016 - 08:37 PM

http://pastebin.com/tAbhPuXN

"Red Flag Holder" and "Blue Flag Holder" are never printed, but both flags render properly until I terminate the program. Any idea how this could happen? I am using quite a few commands to draw the flags and track the players.

#2 Emma

  • Members
  • 216 posts
  • Locationtmpim

Posted 01 June 2016 - 08:42 PM

View PostKingofGamesYami, on 01 June 2016 - 08:37 PM, said:

http://pastebin.com/tAbhPuXN

"Red Flag Holder" and "Blue Flag Holder" are never printed, but both flags render properly until I terminate the program. Any idea how this could happen? I am using quite a few commands to draw the flags and track the players.

I'm not sure, because I don't have the code for the "partTerm" API that is mentioned. Do you think you could provide that as well?

#3 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 01 June 2016 - 08:44 PM

partTerm, commandsPlus

#4 Emma

  • Members
  • 216 posts
  • Locationtmpim

Posted 01 June 2016 - 08:51 PM

View PostKingofGamesYami, on 01 June 2016 - 08:37 PM, said:

http://pastebin.com/tAbhPuXN

"Red Flag Holder" and "Blue Flag Holder" are never printed, but both flags render properly until I terminate the program. Any idea how this could happen? I am using quite a few commands to draw the flags and track the players.

Ok, so the partTerm API's render function (which you call at line 13), after looking at partTerm's code, has a while true loop in the render function, so it blocks there forever rendering the flags. You need to have another parallel.waitForAny or waitForAll there to simultaneously render and perform the logic.

#5 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 01 June 2016 - 09:04 PM

Well, that was stupid. That line shouldn't have existed - I've removed it now, and fixed several other bugs. Thanks!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users