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.
Game isn't working properly
Started by KingofGamesYami, Jun 01 2016 08:37 PM
4 replies to this topic
#1
Posted 01 June 2016 - 08:37 PM
#2
Posted 01 June 2016 - 08:42 PM
KingofGamesYami, 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.
"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?
#4
Posted 01 June 2016 - 08:51 PM
KingofGamesYami, 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.
"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
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











