Closed BaumanDev closed 8 years ago
@ItzLevvie There's no start.bat too.
u have to add it
@Agarian Alright.
https://www.mediafire.com/?lkdm7373k931v00 download that^
What is that?
the server with all elements including start.bat
I added it by making a start.bat
https://www.mediafire.com/?lkdm7373k931v00 has all elements needed including start.bat its easier to get this
there's no difference at all
did u run the server
http://prntscr.com/9qv76k this still happens
is that what this is about? do cells look like theyre merging but are not?
Well what do you mean, did I open the console and run it?
Yes
Yes I did.
do cells look like theyre merging but are not?
Can you send a ZIP of your files? Cause I still get the poor collision with small cells. They barely collide :(
Those are your files?
those are the files^
It's collision is normal?
hold on a sec
Alright
i have the same collision issues apparently but i don't mind it
Aww man :(
want free minions?
Lol I can get up to 1,000 xD But that's just too much..
I don't use minions really.
but these work on regular servers
All of them will be there?
yes the amount can be changed through browser
So if I were to get 300, all 300 would be on agar.io?
no the max is 263
So all 263 will be there? xD
you can make it 1000 but it goes to 263 and most of the time yes
https://www.mediafire.com/?uwnsr602rerr64c chrome is required
Alright thanks, I have to go for a little bit.
Alright guys. Got back home and checked which changes of the new Ogar version had an effect on my code above. It turns out you have to make 2 more changes to make it work like it should also on the latest version of Ogar.
PlayerCell.prototype.simpleCollide = function(x1,y1,check,d) {
// Simple collision check
var len = d >> 0; // Width of cell + width of the box (Int)
return (this.abs(x1 - check.position.x) < len) &&
(this.abs(y1 - check.position.y) < len);
};
It seems that the creator of Ogar has made an effort to make the cells appear less wobbly when they are moving together. As i already solved this problem in another way in the new collision engine, this sorting is no longer needed and in fact needs to be removed because it interferes with my method.
// Sort cells to move the cells close to the mouse first
var srt = [];
for (var i = 0; i < len; i++)
srt[i] = i;
for (var i = 0; i < len; i++){
for (var j = i + 1; j < len; j++){
var clientI = this.nodesPlayer[srt[i]].owner;
var clientJ = this.nodesPlayer[srt[j]].owner;
if (this.getDist( this.nodesPlayer[srt[i]].position.x, this.nodesPlayer[srt[i]].position.y, clientI.mouse.x, clientI.mouse.y ) >
this.getDist( this.nodesPlayer[srt[j]].position.x, this.nodesPlayer[srt[j]].position.y, clientJ.mouse.x, clientJ.mouse.y )){
var aux = srt[i];
srt[i] = srt[j];
srt[j] = aux;
}
}
}
var cell = this.nodesPlayer[i];
Have to say, there's one more detail i couldn't get exactly the way i wanted it. And that is the cell touching. I do have another idea to improve this, but still have to test it. But hey, that's just a minor issue i guess.
@retslac I wish you luck.
@retslac where do we put the second part?
If you mean the section of cell sorting. That needs to be removed from function updateMoveEngine, not added. And just below the part you just removed in the same function there's a line that says:
var cell = this.nodesPlayer[srt[i]];
this needs to be changed into:
var cell = this.nodesPlayer[i];
Hmm, The cells still seem to be colliding bad.
http://prntscr.com/9qyurb this is still happening. Are the cells colliding better for you? Maybe it's some problem with my codes...
the collision is partially malformed, i do not mind it but it would be nice if a fix is implemented. in spectate mode on regular agar, there is free roam spectate mode by pressing Q. any way to do that? :+1:
That's also happening on my part and is exactly what i would still like to fix. I don't really mind it that much though. The reason why it happens is because the smaller cells get squashed in between the big cells. I did try to fix this before but without success. I tried adding some mass to the smaller cells from all the cells pushing against it, so it can't get squashed so much. This partially solved the problem, but also partially cancelled the part of big cells pushing harder against smaller cells. If anybody else has an idea how we can improve this...
Why DO they get squished?
When we get virused the little cells squish through the big ones and pile up there, need to prevent that, and when you're small and you split 16, they squish against each OTHER..
The reason why they get squished is because multiple cells are pushing against it on both sides. This is especially so for small cells in between big cells because the big ones are even pushing harder.
@ItzLevvie Doesn't seem to be making a difference..