|
Floyd Pinkerton
|
 |
« Reply #75 on: May 08, 2011, 05:20:04 am » |
|
What does a noder do? I don't understand.
|
|
|
|
|
Logged
|
 Waiting to cut out the deadwood.
|
|
|
Orpheon
2011 Haxxy Award Winner
Offline
Posts: 5818
Developer
|
 |
« Reply #76 on: May 08, 2011, 06:16:16 am » |
|
What does a noder do? I don't understand.
I use that term for a position where the bot will do something. For example I have a list for all the places where he should jump for 2dfort. My program made in 2 minutes just writes to a file your position when you press e and jump. With it you can walk through a map saving all the positions and then give me those positions. I will then put them into the bot and he will jump there as well. Ofcourse, this is not limited to jumping. I also have a "reverse" system, if the bot meets one, he reverses his direction. Crates and such are not necessary to node, he can do that automatically. No, what really needs help are stairs. If you're unsure, let the bot walk through a map and look where he should jump.
|
|
|
|
|
Logged
|
Your mind is software. Program it. Your body is a shell. Change it. Death is a disease. Cure it. Extinction is approaching. Fight it.
|
|
|
Krauser
Newbie
Offline
Posts: 14
Steam : Krauserr. I've got TF2 and Gmod. Play !
|
 |
« Reply #77 on: May 13, 2011, 12:08:43 pm » |
|
New !! ___________________________________________ ERROR in action number 1 of Step Event for object PlayerControl:
In script BotInputConverter: In script BotMain: In script BotFight: Error in code at line 1: if sign(nearestTarget.hspeed) == sign(Player.object.x-nearestTarget.x) // If the enemy is moving towards the bot; run. ^ at position 9: Unknown variable nearestTarget
Some help ? 
|
|
|
|
|
Logged
|
|
|
|
Orpheon
2011 Haxxy Award Winner
Offline
Posts: 5818
Developer
|
 |
« Reply #78 on: May 13, 2011, 12:35:30 pm » |
|
New !! ___________________________________________ ERROR in action number 1 of Step Event for object PlayerControl:
In script BotInputConverter: In script BotMain: In script BotFight: Error in code at line 1: if sign(nearestTarget.hspeed) == sign(Player.object.x-nearestTarget.x) // If the enemy is moving towards the bot; run. ^ at position 9: Unknown variable nearestTarget
Some help ?  Ehm... I know your problem. But are you using the newest version? Because I thought I had fixed this.
|
|
|
|
|
Logged
|
Your mind is software. Program it. Your body is a shell. Change it. Death is a disease. Cure it. Extinction is approaching. Fight it.
|
|
|
Krauser
Newbie
Offline
Posts: 14
Steam : Krauserr. I've got TF2 and Gmod. Play !
|
 |
« Reply #79 on: May 13, 2011, 12:37:06 pm » |
|
Ehm... I know your problem. But are you using the newest version? Because I thought I had fixed this.
Yeah i've got the newest. And it's always the same error. EDIT : Need one more old ?
|
|
|
|
« Last Edit: May 13, 2011, 12:38:17 pm by Krauser »
|
Logged
|
|
|
|
Derpduck [LORD]
2011 Haxxy Finalist
Offline
Posts: 3529
|
 |
« Reply #80 on: May 13, 2011, 01:47:39 pm » |
|
i get an error every 5 minuets saying unknown variable hspeed (or is it vspeed)
|
|
|
|
|
Logged
|
|
|
|
Orpheon
2011 Haxxy Award Winner
Offline
Posts: 5818
Developer
|
 |
« Reply #81 on: May 13, 2011, 02:14:47 pm » |
|
Ehm... I know your problem. But are you using the newest version? Because I thought I had fixed this.
Yeah i've got the newest. And it's always the same error. EDIT : Need one more old ? No no, this is my fault and you'd need to use really old versions to not get it. I made a variable global, and missed a few places to correct it. I'll go fix this immediately. i get an error every 5 minuets saying unknown variable hspeed (or is it vspeed)
I have no idea whatsoever what that is. Can you copy the error exactly and tell me what your doing?
|
|
|
|
|
Logged
|
Your mind is software. Program it. Your body is a shell. Change it. Death is a disease. Cure it. Extinction is approaching. Fight it.
|
|
|
Derpduck [LORD]
2011 Haxxy Finalist
Offline
Posts: 3529
|
 |
« Reply #82 on: May 13, 2011, 02:15:56 pm » |
|
ok go do that now
|
|
|
|
|
Logged
|
|
|
|
Derpduck [LORD]
2011 Haxxy Finalist
Offline
Posts: 3529
|
 |
« Reply #83 on: May 13, 2011, 02:17:51 pm » |
|
also on arena i get this ERROR in action number 1 of Step Event for object PlayerControl:
In script BotInputConverter: In script BotMain: In script BotControlPoint: Error in code at line 5: target = instance_nearest(global.myself.x, global.myself.y, ControlPoint);if (target.locked){ if (ControlPoint1.locked==0) {target=ControlPoint1} else if (target=ControlPoint1 && ControlPoint2.locked==0) {target=ControlPoint2} else if (target=ControlPoint2 && ControlPoint3.locked==0) {target=ControlPoint3} else if (target=ControlPoint3 && ControlPoint4.locked==0) {target=ControlPoint4} else if (target=ControlPoint4 && ControlPoint5.locked==0) {target=ControlPoint5}}//if (target.locked == 1){target = ControlPoint1;}//if (target.locked == 1){target = ControlPoint2;}//if (target.locked == 1){target = ControlPoint3;}//if (target.locked == 1){target = ControlPoint4;}//if (target.locked == 1){target = ControlPoint5;}if global.myself.team == TEAM_RED{ if target.x > Player.object.x { right = 1 }} ^ at position 23: Unknown variable locked
|
|
|
|
|
Logged
|
|
|
|
Derpduck [LORD]
2011 Haxxy Finalist
Offline
Posts: 3529
|
 |
« Reply #84 on: May 13, 2011, 02:18:56 pm » |
|
ERROR in action number 1 of Step Event for object PlayerControl:
In script BotInputConverter: In script BotMain: In script BotIntel: Error in code at line 10: if Player.object.intel //I've got the enemy intel!! ^ at position 19: Unknown variable intel
|
|
|
|
|
Logged
|
|
|
|
Orpheon
2011 Haxxy Award Winner
Offline
Posts: 5818
Developer
|
 |
« Reply #85 on: May 13, 2011, 02:28:01 pm » |
|
Oh damn. Anyway Krauser, fixed that error and uploaded again. This only affects the exe.
As for Derp; error 1 I know, CP and Arena aren't really working right now. Error 2 I'd like to know what it is. Maybe someone can help me, but I really can't imagine why the intel variable suddenly disappears. I'll go ask in the help thread.
|
|
|
|
|
Logged
|
Your mind is software. Program it. Your body is a shell. Change it. Death is a disease. Cure it. Extinction is approaching. Fight it.
|
|
|
Orpheon
2011 Haxxy Award Winner
Offline
Posts: 5818
Developer
|
 |
« Reply #86 on: May 13, 2011, 02:56:59 pm » |
|
Ehm, Derp.... I also have a problem; namely that "Player.object.intel" asked in the PlayerControl step event periodically disappears (Unknown Variable: Player.object.intel) Does someone know why?
because the character object gets destroyed every time you die/change class/whatever. therefore player.object doesn't exist and can't have the variable intel which you try to access. guess you could try if(instance_exists(Player.object)){ Player.object.intel ...and other code... } Does this only happen when you die?
|
|
|
|
|
Logged
|
Your mind is software. Program it. Your body is a shell. Change it. Death is a disease. Cure it. Extinction is approaching. Fight it.
|
|
|
Derpduck [LORD]
2011 Haxxy Finalist
Offline
Posts: 3529
|
 |
« Reply #87 on: May 13, 2011, 03:00:12 pm » |
|
no on any custom ctf map
|
|
|
|
|
Logged
|
|
|
|
Krauser
Newbie
Offline
Posts: 14
Steam : Krauserr. I've got TF2 and Gmod. Play !
|
 |
« Reply #88 on: May 14, 2011, 12:04:44 pm » |
|
___________________________________________ ERROR in action number 1 of Step Event for object PlayerControl:
In script BotInputConverter: In script BotMain: In script BotFight: Error in code at line 1: if sign(global.nearestTarget.hspeed) == sign(Player.object.x-global.nearestTarget.x) // If the enemy is moving towards the bot; run. ^ at position 30: Unknown variable hspeed
Got it again but now it's when it kills someone.  And , one thing again : MAKE IT STOP SHOOTING WHEN THERE IS NO ENNEMY ON HIS AREA !!
|
|
|
|
« Last Edit: May 14, 2011, 12:11:02 pm by Krauser »
|
Logged
|
|
|
|
Orpheon
2011 Haxxy Award Winner
Offline
Posts: 5818
Developer
|
 |
« Reply #89 on: May 14, 2011, 12:15:16 pm » |
|
___________________________________________ ERROR in action number 1 of Step Event for object PlayerControl:
In script BotInputConverter: In script BotMain: In script BotFight: Error in code at line 1: if sign(global.nearestTarget.hspeed) == sign(Player.object.x-global.nearestTarget.x) // If the enemy is moving towards the bot; run. ^ at position 30: Unknown variable hspeed
Got it again but now it's when it kills someone.  I think I fixed the new error, uploaded again (sorry for the many uploads). I'm not sure though because testing on this computer (not my own) is a bit complicated. And , one thing again : MAKE IT STOP SHOOTING WHEN THERE IS NO ENNEMY ON HIS AREA !!
He should only shoot when an enemy is in a range of 400 pixels around. Is this not the case? Does he shoot at times where the enemy is too far?
|
|
|
|
|
Logged
|
Your mind is software. Program it. Your body is a shell. Change it. Death is a disease. Cure it. Extinction is approaching. Fight it.
|
|
|
|