I released my map (The Outpost - Challenge Map) like a month ago and I've gotten feedback about a major bug in this script that keeps you from completing the easteregg/beating the map when playing Co-op. It works great on solo but i dont know what the problem is on Co-op and I really dont have time to look through every bit of my code to try and test things until i fix it. So any scripters, if you can please help me out I'd really appreciate it
I have not personally played my map on co-op, but people say that you cant pickup certain parts or something? I'm not entirely sure but you can play the map with a friend or two yourself or you can check the comments on the map's thread: http://ugx-mods.com/forum/index.php?topic=6733.0
Here's my entire buildables script: (I know its probably very poorly written and sloppy but this was my first large script)
Last Edit: June 13, 2015, 04:22:54 pm by AlecKeaneDUB
I'm guessing it has something to do with the fact that you use 3 while loops in the same function. The second or third while loop won't start until the first while loop ends. My suggestion would be to put each loop in its own function and just thread call each function. That should atleast fix the issue with players not being able to grab certain parts until they add the part before it.
Last Edit: June 13, 2015, 04:38:48 pm by daedra descent
I played this map on co-op, and I know you said you had to pick up the first part in the spawn room, before you can pick up the second one, and the second one before the third. But when we played it even after we placed the first part, we couldn't pick up the second part, or the third one. On solo, it worked fine though.
I played this map on co-op, and I know you said you had to pick up the first part in the spawn room, before you can pick up the second one, and the second one before the third. But when we played it even after we placed the first part, we couldn't pick up the second part, or the third one. On solo, it worked fine though.
Yes thats exactly the problem I want fixed. And like daedra said, the problem of having to pick up and add parts in order is because of the triple while loop. That I can fix but I cant find the issue with co-op
...but i dont know what the problem is on Co-op and I really dont have time to look through every bit of my code to try and test things until i fix it...
...I have not personally played my map on co-op, but people say that you cant pickup certain parts or something?
If you dont even want to spend time fixing your scripts why would we want to? Sounds a bit weird to me, the way you put it there... But ok, maybe this helps.
This really doesn't make too much sense:
Try reading it like this, maybe that clears it up a bit..
If you want scripts / features made for you, then contact me by PM or email / skype etc it will cost you tho so if you have no intention of reciprocating don't even waste my time
If you dont even want to spend time fixing your scripts why would we want to? Sounds a bit weird to me, the way you put it there... But ok, maybe this helps.
This really doesn't make too much sense:
Try reading it like this, maybe that clears it up a bit..
lol yea the way he wrote that wasnt really ideal was it lol
"I cant be assed, so can one of you mugs do it for me, what evs ill be back to pick up my completed homework" lol
lol yea the way he wrote that wasnt really ideal was it lol
"I cant be assed, so can one of you mugs do it for me, what evs ill be back to pick up my completed homework" lol
I just knew that I'm not good enough at scripting to fix this and I didnt want to admit it I honestly looked at it for a really long time but i still suck so I had no idea where to even look for the problem, so I just said that I didnt have the time to look through it. I didnt mean for it to make me sound like an asshole, so my bad for that
Last Edit: June 14, 2015, 10:33:22 pm by AlecKeaneDUB
I just knew that I'm not good enough at scripting to fix this and I didnt want to admit it I honestly looked at it for a really long time but i still suck so I had no idea where to even look for the problem, so I just said that I didnt have the time to look through it. I didnt mean for it to make me sound like an asshole, so my bad for that
lol its alright, I meant that as a joke
We know what you meant
I have a fully functional craftables script you can use instead if you want, its not the one in the tutorials section here, as I havent released it yet. Hit me up if you want it
Last Edit: June 14, 2015, 11:57:21 pm by Harry Bo21
I just knew that I'm not good enough at scripting to fix this and I didnt want to admit it I honestly looked at it for a really long time but i still suck so I had no idea where to even look for the problem, so I just said that I didnt have the time to look through it. I didnt mean for it to make me sound like an asshole, so my bad for that
Did putting each loop into its own function and threading it help any? What about BluntStuffy's suggestion?
There really isn't anything else thats wrong with the script besides optimizations that i can see. It should do the job in both SP and COOP.
Edit: Actually now that i look through the whole script, i do see another issue with your shootable trig function:
This if statement will always evaluate to true, regardless of what weapon the player actually has. Not sure if you want it like that or not but if you don't you should change the two pipes '||' with '&&'.
Last Edit: June 15, 2015, 03:28:15 am by daedra descent