The Gang Garrison 2 Forum
May 24, 2013, 11:49:07 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Chat with us on IRC: http://ganggarrison.com/irc.html
Server: irc.esper.net, Channel: #gg2
 
   Home   Help Search Login Register  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 »
  Print  
Author Topic: Ideas thread.  (Read 107499 times)
Hanz Ketchup
you make my kokoro go doki doki
Veteran Beta Tester
*****
Offline Offline

Posts: 9953


hanzketchup.tumblr.com


WWW
« Reply #2130 on: August 20, 2011, 10:34:03 pm »

:U Still won't make much sense to me.
He's from a FUCKING VIDEO GAME WHERE THE MAIN ANTAGONIST RUNS SOLELY ON POTATOES AND YOU TRAVERSE THE LEVELS WITH PORTALS AND OTHER SPACE AGE TECHNOLOGY
WHY WOULD IT MAKE SENSE
Logged

Saltonara
Hero Member
*****
Offline Offline

Posts: 7038


Mamma mia!


« Reply #2131 on: August 20, 2011, 10:35:06 pm »

So Wheatley then?
Logged

Dusty
Hero Member
*****
Offline Offline

Posts: 10660


Dust in a box under a table


« Reply #2132 on: August 20, 2011, 10:36:23 pm »

Fine, if you make him bounce around the board.
Logged

Neal_Shireman
Resident Fag
Veteran Beta Tester
*****
Offline Offline

Posts: 3190



WWW
« Reply #2133 on: August 20, 2011, 10:37:14 pm »

:U Still won't make much sense to me.
He's from a FUCKING VIDEO GAME WHERE THE MAIN ANTAGONIST RUNS SOLELY ON POTATOES AND YOU TRAVERSE THE LEVELS WITH PORTALS AND OTHER SPACE AGE TECHNOLOGY
WHY WOULD IT MAKE SENSE
No logis is bess logic.
Logged
Hanz Ketchup
you make my kokoro go doki doki
Veteran Beta Tester
*****
Offline Offline

Posts: 9953


hanzketchup.tumblr.com


WWW
« Reply #2134 on: August 20, 2011, 10:42:10 pm »


Logged

Dusty
Hero Member
*****
Offline Offline

Posts: 10660


Dust in a box under a table


« Reply #2135 on: August 20, 2011, 10:46:56 pm »

I AM A BEING OF LOGIC.
Logged

Dronery
2011 Haxxy Finalist
*
Offline Offline

Posts: 1847


Your ████


« Reply #2136 on: August 20, 2011, 10:51:55 pm »

Its a game and you're supposed to have fun. Logic is optional besides it is a game after all.
Logged

Lorgan
Retired Randomizer Mod Developer
2011 Haxxy Award Winner
*
Offline Offline

Posts: 2975


check my new game in new projects k thx bye


WWW
« Reply #2137 on: August 21, 2011, 04:04:35 am »

Does anyone have experience with pathfinding?
The thing i made manages to get to the exit if it's in a narrow hallway with walls on both sides or if it's just a straight walk to the exit, but when there is a wall between the exit and the ai, the game shuts down with no error :U

edit:

The code that creates an array with the path sucks even more than the pathfinding ai. (If i make the path longer it says the target is found without drawing a line completely to the target)

I'm not sure why it decided to go down at the first wall. It might be a graphical glitch.

if anyone wants to help (probably not lol)
« Last Edit: August 21, 2011, 07:50:09 am by Lorgan » Logged

Unfortunately, turning a section into a communist oppressive regime is not against the forum rules, so there is really nothing we can do.
Quote from: steam
21:08 - Hullusorsa: lorgan, when will you buy us the keys?
21:09 - Lorgan: i'm waiting for greece to collapse so the value of the euro drops
21:09 - Lorgan: not even joking
GraveZombie is Finally a Cowboy
Hero Member
*****
Offline Offline

Posts: 2791


bored now


« Reply #2138 on: August 21, 2011, 09:16:03 am »

I would say either give wheatly a robot body, or have him carried by Chell, as she dosen't have a voice.
Logged


Possibly the Anti-Christ of the Clan Section for a while.
Orpheon
2011 Haxxy Award Winner
*
Offline Offline

Posts: 5835


Developer


« Reply #2139 on: August 21, 2011, 09:55:20 am »

@Lorgan:

I don't have any experience, but I know the theory:


Though since you already coded stuff, you probably know this :/


I can't really help more, I'd need to sit and think for a while too.
Sorry.

Good luck.

PS: What are you working on?
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.
Lorgan
Retired Randomizer Mod Developer
2011 Haxxy Award Winner
*
Offline Offline

Posts: 2975


check my new game in new projects k thx bye


WWW
« Reply #2140 on: August 21, 2011, 10:37:36 am »

@Lorgan:

I don't have any experience, but I know the theory:


Though since you already coded stuff, you probably know this :/


I can't really help more, I'd need to sit and think for a while too.
Sorry.

Good luck.

PS: What are you working on?
No, all it does is spamming objects in all directions and those objects keep looping until they hit a wall and then create new objects in the free directions and it keeps doing that until it finds the target. (very shitty in other words)

I'll read that wikipedia thing later today, i don't feel like reading it now.
Logged

Unfortunately, turning a section into a communist oppressive regime is not against the forum rules, so there is really nothing we can do.
Quote from: steam
21:08 - Hullusorsa: lorgan, when will you buy us the keys?
21:09 - Lorgan: i'm waiting for greece to collapse so the value of the euro drops
21:09 - Lorgan: not even joking
Lorgan
Retired Randomizer Mod Developer
2011 Haxxy Award Winner
*
Offline Offline

Posts: 2975


check my new game in new projects k thx bye


WWW
« Reply #2141 on: August 21, 2011, 11:24:10 am »

I could use some help with it, it's so confusing, i don't understand shit of it  =/
Also it was trying to make a bit of a less retarded ai that could actually walk around walls (which it doesn't, it fails to find a path most of the time)
Logged

Unfortunately, turning a section into a communist oppressive regime is not against the forum rules, so there is really nothing we can do.
Quote from: steam
21:08 - Hullusorsa: lorgan, when will you buy us the keys?
21:09 - Lorgan: i'm waiting for greece to collapse so the value of the euro drops
21:09 - Lorgan: not even joking
Orpheon
2011 Haxxy Award Winner
*
Offline Offline

Posts: 5835


Developer


« Reply #2142 on: August 21, 2011, 11:58:17 am »

@Lorgan:

I don't have any experience, but I know the theory:


Though since you already coded stuff, you probably know this :/


I can't really help more, I'd need to sit and think for a while too.
Sorry.

Good luck.

PS: What are you working on?
No, all it does is spamming objects in all directions and those objects keep looping until they hit a wall and then create new objects in the free directions and it keeps doing that until it finds the target. (very shitty in other words)

I'll read that wikipedia thing later today, i don't feel like reading it now.

Actually, the images pretty much sum it up.
There's another version of that algorithm that's a bit faster, but also a bit more complicated.

Well, basically:

All the objects must have an int "distance" and two arrays: an "xArray" and a "yArray".

with path objects:
1. Check whether you are at the destination position; if yes goto 7. (see below), else continue
2. Set: "xArray[distance] = x; yArray[distance] = y"
3. Create objects everywhere around you where there is no other path object or obstacle
4. In all objects that you created, set their distance to yours+1
5. Copy your entire xArray and yArray into them
6. You are done. instance_destroy()

7. (You are at the destination) Return xArray and yArray to the character/AI; also return distance

The AI then has a nice set of instructions; next frame it's x=xArray[1], y=yArray[2]; then 2nd frame: x=xArray[2], y=yArray[2]; etc...

You get what I mean?


This code is probably laggy as hell, but it should work. If you can figure out a way to do this without involving objects, the lag will probably get cut down immensely.
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.
Lorgan
Retired Randomizer Mod Developer
2011 Haxxy Award Winner
*
Offline Offline

Posts: 2975


check my new game in new projects k thx bye


WWW
« Reply #2143 on: August 21, 2011, 12:06:48 pm »

I did a new attempt at it before i read this but it has a bug; it likes taking loops.
The first pic only has a small loop in it, but the second one is... 'efficient'

I'll try to fix mine first (it's actually very similar to the algorithm)
Logged

Unfortunately, turning a section into a communist oppressive regime is not against the forum rules, so there is really nothing we can do.
Quote from: steam
21:08 - Hullusorsa: lorgan, when will you buy us the keys?
21:09 - Lorgan: i'm waiting for greece to collapse so the value of the euro drops
21:09 - Lorgan: not even joking
I_am_awesome
Guest
« Reply #2144 on: August 21, 2011, 12:43:36 pm »

seems like your algorithm is like 'can I go right? nah came from there. up? nah, wall. oh, hey left is free, guess I won't have to bother looking down.'
Logged
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.236 seconds with 18 queries.