War2.ru Slogan
News: If your graphics are broken you can fix with the new ddraw version.
** Read how to install it here **


Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Welcome to the forums! We're glad to have you here! :) You can register your account here, then feel free to introduce yourself in the Server.War2.ru board & let us know who you are on the server.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Lambchops

Pages: [1] 2 3 ... 58
1) Mods & Development / Re: Lat Trick Bot
« on: May 27, 2018, 05:54:11 PM »

@Lambchops, i'll try your dll, but i almost sure that will not help as you open sockets the same way as a python script.

I'd say we have to inject sending packets into war2 process somehow.

Slightly different. You will notice that you can start my dll after wc2 is already started, but you must open the python script before wc2 so it takes precedence. This is not desirable.

I am using the windows API networking primatives. All networking ends up using these functions regardless of the source.
Just because python methods have the same name like "sendto" does not mean that they are the same - the paramaters are different so python is simplifying things behing the scenes before passing them to the API functions. I don't know how close to a 1:1 translation the python methods are, and I don't really need to know as I wouldn't bother using them.

And yes this is a bad way to be doing this, as I have said. It's unlikely to work without causing problems/glitches, but you are trying it out, so I am trying to help.

I have documented the correct way to do this many times, it is only the script-kiddie making noise that is confusing the issue.

Have sent a PM with more specific information.







2) Mods & Development / Handy PUD bitmap maker.
« on: May 27, 2018, 01:47:56 AM »
Looks like mostly my SS grabber is only being used to make pics of maps - not really in game SS, so this is probably much easier to use.

TuPaC asked for this so I just did a very quick and nasty hack of my pud editor project and made it a console app.

Just unzip then drop a .pud file onto pudpic.exe and it will make a .bmp file, without having to use war2 at all.

128x128 full map bitmaps are over 16MB so you will probably want to convert to png or jpg or whatever.

There's no error checking - if you give it a rubbish file it will just crash.


3) Mods & Development / Re: Lat Trick Bot
« on: May 26, 2018, 06:15:37 PM »
So, for future, our logic should be more complicated. Looks like we have to read game data port for each client or check the port from hosted game.
Sad, but looks like there's no way to know UDP port for original client with no lat bots even if his ports are fine.

This is why at the least you should have the clients registering their details with the server when they enter the channel.....

actually you should have the clients telling the server when they are trying to join a game, then the server frowarding the address/port to the host so the host can punch a hole.

^ this is how it should be done. Not just spamming everyone all the time and hoping it works.

4) Mods & Development / Re: Lat Trick Bot
« on: May 26, 2018, 05:45:47 PM »
Actually wrong, I came up with it on my own while hacking an IP camera and that is how I learned about UDP hole punching and... blah blah

LOL. Bullshit

That exact link you just quoted is you making one post about STUN because you found an article about it online, so I replied to your post and explained why it wouldn't work, what had to be done to make it work, and even posted a link to my original thread supplying pages of detailed explainations about the entire thing.

 .... then you went away for a month and came back saying you had just spent a month becoming an "expert" by researching it online. But you never noticed anything I posted and just "came up with it"?

Next you make this post with some shitty snippets of code that you have copy/pasted that you don't even understand, the only thing you do understand is that you want SQL access so you can keep running your noobish little SQL scripting hacks on the server.

;D Hysterics... wipe that brown drool of your chin noob.

"one day maybe" well guess that day is today thanks to my dedicated research and terrible programming skills, neat huh?

pffff you are using the sort of mass spamming that is just going to cause problems, you can't even get it to stop crashing, it still doesnt work, and I provided a well written alternative that doesn't crash or fail plus detects hosting in a couple of hours.

I was refering to doing it properly. The approach you are attempting to use might barely work with the fixes I have told you that you need ONLY because there are very few people using the server. In any real environment with a busy server it would definately fail and cause issues for most users and even their families once you spammed their home routers up with rubbish.

5) Mods & Development / Re: Lat Trick Bot
« on: May 26, 2018, 03:02:07 PM »
One solution would be to have iL rewrite player_ips.php to only output IP Addresses of players who in a channel

Yes this is what I just said on this page, it has to happen. The client side of the problem I have already coded for you in the dll above. Excatly who do you think you're convincing?.... I doubt your mom reads this forum ;D

6) Mods & Development / Re: Lat Trick Bot
« on: May 26, 2018, 02:49:05 PM »
You "knew" the solution 2 years ago yet never programmed it. Why?


Because I didn't have time to do it properly and wouldn't bother using a crappy mass-spamming approach like the one you are attempting to use. I did discuss this approach and why it was not a good idea. All of this is published on this forum, as I'm sure you know.

You could just say "thanks" when I yet again explain things or fix stuff for you (no charge).

Seriously grow up.

Try this:




You know I would actually help you a lot more.

7) Mods & Development / Re: Lat Trick Bot
« on: May 26, 2018, 12:07:48 AM »
@iL

Shouldn't really be spending time on this, but here's a quick dll to help.

it exports 2 functions
Code: [Select]
BOOL hosting(void)
returns TRUE if local player is host and in pre-game lobby.

BOOL send_packet(CHAR* addr, int local_port, int remote_port)
sends your "For The Alliance" packet.

this way you can do something like:

Code: [Select]
if(hosting()){
    send_packet("111.222.3.44",6112,6114);
}


Havn't thoroughly tested it yet but it should work ok I think.

I can PM you the C++ source code if you want. (don't want to post it here or scrubs might use it to make hacks).



8) Mods & Development / Re: Lat Trick Bot
« on: May 25, 2018, 08:21:14 PM »
@iL

Your definition of how remote port and local port is correct actually, you are right that is how it works.

So we are able to port forward now, but possibly the problem is that Python is intercepting packets destined for War2 causing the game to disconnect. I will have to think about this...

My first idea is to try changing the "binding" IP address. 0.0.0.0 means to listen on all interfaces, but we don't actually want to listen on any interfaces.. not sure what to do. I will keep testing


I can add error checking so that if a socket fails it keeps trying instead of crashing

@AHB

Dear noob. You are not listening on any interfaces. That would require using the 'listen()' API ;D

The reason the person that you copied this code from used bind(0.0.0.0,port) is to associate the local port number with the socket, while sendto() sets the remote port...

Have you worked out what you copy/pasted yet?  #GodlyExpert  #ROTF



9) Mods & Development / Re: Lat Trick Bot
« on: May 25, 2018, 07:40:05 PM »
That will be a plan for future, as a 1-st step it's easier to send packets all the time.

And it causes disconnect, no idea why, but that's unacceptable behavior even if i sent them in wrong time and to wrong ips

This is actually a good sign. Causing the disconnect means that the packets are ending up where they should be... --> they are going to the WC2 client.

Of course at this point what you are making is a disc-bot, because you are sending the client rubbish packets - in this case "For the Alliance" which is clearly causing a problem for the client.

I discussed this in September 2016 when I first posted this solution:
The packets can be anything. Null packets would probably work fine, whatever, as long as it doesn't crash the client with garbage, its all good. We have then done our “lat trick” between the host and the joining client which is the only one not already being done. End of hosting issues forever. GG

I can quite easily help you with code that will let you detect when the client is hosting a game, and not in the channel or in game, that is very simple.

It will be up to you to make sure that your address list has ONLY the players in the channel, not those in games, otherwise you could possibly disconnect other people playing or contribute to game lag.

Sending out packets all the time to everyone is a bad idea, for a lot of reasons, not the least of which is that you are opening up your own firewall to everyone on the server for no reason. People could drop-hack you from games while they are in the channel or worse.

-- edit --

Do you see that we dont need to know the remote port? Only use the local game port as both the source and destination

Which is the reason you can't get it to work through symmetric NAT. Why not just do it properly?


I think just standard 'socket' 'connect' and 'sendto' etc. should do it for anything I've been talking about..

I'm a bit busy working on another project right now, but when I get some spare time I'll fix it for you if the 'expert' hasn't worked it out by then ;)

10) Mods & Development / Re: Lat Trick Bot
« on: May 24, 2018, 07:10:06 PM »
Ok here is the whole entire thing:
tried that, looks like not working as is.

nat_type, external_ip, external_port = stun.get_ip_info("0.0.0.0", war2_port)
Not working after you join bnet (returns "blocked").
You should check that before join bnet, then it's fine.
Not a big deal now.

And the big problem:
      # create a socket object
      client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
      client.bind(('0.0.0.0', war2_port))

      # send some data
      client.sendto("For the Alliance", (target_host, war2_port))
      print "Sent data to " + str(player_ip) + " on port " + str(war2_port)
causes disconnect after i join the game, build TH and then building the farm or barracks (checked twice).
I still didn't try to host the game as i didn't get real list of ips.

My player_ips.php is: {"player_ips": ["45.33.94.234", "2.2.2.2", "3.3.3.3"]}

I think my router becomes confused about too many outgoing UDP from the same port to different addresses or w/e.

Also, i changed Game Data Port to 6113 to not reconfigure nat redirections on my router. Here's my code then:
Code: [Select]
war2_client_port = 6113
war2_remote_port = 6112
...
      client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
      client.bind(('0.0.0.0', war2_client_port))
      client.sendto("For the Alliance", (target_host, war2_remote_port))

It is very simple.

WC2 worked before NAT. WC2 works over NAT. There is no problem there.
You don't need STUN. This is just the noob getting excited about stuff he read online that he doesn't actually understand.

You don't need to reverse the NAT address translation, just allow NAT to function the way it is designed.

You only need to send packets from host before game starts.

You only need to send packets to people in the channel.

That is all.

11) Server.War2.ru / Re: xbremer has left the realm
« on: May 24, 2018, 01:58:16 PM »
https://www.wthr.com/1835651

Looks like Yamon will be taking a break as well.



ROTFLMAO in fkn hysterics ;D

I don't know what's funnier, this useless loser or his useless parents who actually need to go to court to get rid of him. They obviously taught him everything he knows.

OMG some people should be sterilized at birth :))


12) Mods & Development / Re: Lat Trick Bot
« on: May 24, 2018, 01:41:13 PM »
BAHAHAHAHA

The little noob has put parts of my email address in his post LOLOLOL That's what all the weird capitol letters are in his last post.

ooooo scary, what are you going to do phishing scam me?

Everybody already knows you pulled the SQL db from the server years ago. Then you got locked out because you bragged about it like the little wannabe script kiddie that you are and now you're trying to scam your way back in.

Are you actually trying to threaten me with my email address? ;D ROTF


the nat stats arent even a necessary component of the program so take it or leave it.

DUH. My point EXACTLY. So leave it.

you should know we know much more than just your nat type lmao jeez quit trippin. no need for the nasty Gram

Who is "we"?  .... you and your mom?

Point proven - this guy is a complete dick.

13) Server.War2.ru / Re: xbremer has left the realm
« on: May 23, 2018, 05:44:45 PM »
I should quit more often. Havn't quit in ages  :blank:

14) Mods & Development / Re: Lat Trick Bot
« on: May 22, 2018, 10:45:18 AM »
You do know that the definition of a script kiddie is someone who uses code that other people write, and cant write their own code right?

So by definition I wrote the code, and you know nothing about programming as youve made apparent, so that would make you a script kiddie lol

I know this is really hard for you to understand, but the part of the PHP code where it says "username=username" and "password=password" is intended to be changed by iL to his own credentials which I wont know what they are, so no I dont have SQL access. Sorry no time to keep explaining how these basic things work.


Every time you dodge questions, and answer unasked ones just further proves your dishonest intentions.

So you are doing backfilps to include this unnecessary data collection yet you are NOT trying to get access to the results? ROTF ;D

You claim to be a SQL expert yet you pretend that giving you SQL access doesn't open up the sever and everyone's personal data to a range of potential attacks. "Everyone" knows you have already devoted a lot of time to DDOS attacking the server and stealing personal information.

I call bullshit. So just get rid of your little unneeded SQL db, you're not fooling anyone.

@iL if you want to use this approach, just impliment it yourself without the lame hacker's code - you don't need him.

15) Mods & Development / Re: Lat Trick Bot
« on: May 20, 2018, 09:54:49 PM »
Everyone knows me in in real life here, and anyone with a brain can read the code and see there is no backdoor in it...

Keep telling yourself you solved hosting lol congrats to you

Inventing a non-existant excuse for you to have SQL access to the server is a back-door.

So who are you then? Who is "everyone"? Where is "here"?

The threads of  me explaining the problem and the solution to your newb ass are all on this forum. HF with your fantasy that you're not a self-promoting script-kiddie.

Pages: [1] 2 3 ... 58