[QUOTE=hogofwar;39142534]Any example of how you write yours down, if at all?[/QUOTE]
Sure, it's pretty simple, It just looks something like this
[code]
* Create content manager that smartly loads images and tilemaps
* Create state manager that allows the game to run in various states ect.
* Load a map from a file and create a list of tiles to update and draw to the screen
* Create a basic moving entity with collision detection
[/code]
Then I just put a little # at the end when I'm done with it, whenever I get frustrated I just look back and see that I've got all the work done, and all the cool stuff coming up. I'm continually adding stuff to mine like "Make platforms that move back and forth" ect. for cool shit I want to add.
Talking of collision detection I just spent the last 4 hours working out why my collision response wasn't working. I finally worked out that while I was detecting collision in frame x, I wasn't responding till frame x+1. I couldn't work out why, until some of the earliest code I wrote caught my eye. I wasn't updating the collision rect until after the collision detection, where I should of been updating it with every move *doh*.
[QUOTE=cartman300;39135239]Yeah, but this is not .NET anymore, it's being translated to Assembly and then compiled and packed into .iso, no Windows API calls, that means every .NET function needs to be pluged with Assembly and not all of them are pluged that's why some stuff doesn't work.[/QUOTE]
cmp al, byte 4 or something like that.
[QUOTE=laylay;39142488]I'm not using Source. Just using models from various games as placeholders.[/QUOTE]
^This makes it ten times more impressive! Keep up the good work!
I don't know if you told it before, but can you give me more information on how you made this? (What language, opengl/directx etc.) Thank you!
just started my first programming class today, going to be learning C#. Maybe soon I will understand half of what goes on in this thread.
[QUOTE=Darwin226;39135558]Hey guys. How would I go about making a proxy application that processed packets from a certain server before forwarding them on the the application they were meant for. I need to be able to change them as well.
Perl tells me I can inject the application and hook into it's connect and stuff but that sounds a bit to invasive for me. Also, I have no idea how to do any of those things.
He also mentioned WinPCap as an option but apparently it's very low level.
Ideally, I'd like to have the program not do anything to the application it's proxying AND have the ability to read packets at a high enough level that I don't need to assemble chat strings manually.
My intentions aren't malicious. The program would only be used by me (and the people who want it) to additionally censor the ingame chat in LoL.[/QUOTE]
What you can do is a [URL="http://en.wikipedia.org/wiki/Man-in-the-middle_attack"]Man in the middle[/URL] server/client. It's pretty damn hacky but requires less base modification. A quick run down on what you would need to do is. Find the IP and port it's using then use a tool like HXD or IDA to find and patch it's IP and or port to connect to a server you run in the background that manages all the packets while also connecting to the real server. This does get messy fast because you have to manage both incoming and outgoing packets but as long as you take care to keep the code clean while writing it you should be good. Now if you need to do anything like modify the main program (Assuming you will be using C# for the job) you can use [URL="http://www.pinvoke.net/default.aspx/kernel32.readprocessmemory"]ReadProcessMemory[/URL] or use [url=https://sites.google.com/site/robertgiesecke/Home/uploads/unmanagedexports]To create your server as a unmanaged library, Add it to the base program's IAT (Import Address Table) and patch in your start function somewhere in the startup code. After that you can use use [URL="http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marshal(v=vs.110).aspx"]Marshal[/URL] to move data around and [URL="http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.unmanagedfunctionpointerattribute.aspx"]UnmanagedFunctionPointer[/URL] to make function calls. If you are curious about any speed issues I have a similar library hooked into the input processing and physics loop of a game and have noticed no slowdowns what so ever.
[editline]ohmy[/editline]
Oh god facepunch raped the formatting I did and turned it into a giant block of text :suicide:
[QUOTE=anthonywolfe;39143433]What you can do is a [URL="http://en.wikipedia.org/wiki/Man-in-the-middle_attack"]Man in the middle[/URL] server/client. It's pretty damn hacky but [B]requires less base modification[/B]. A quick run down on what you would need to do is. Find the IP and port it's using then [B]use a tool like HXD or IDA to find and patch it's IP and or port[/B] to connect to a server you run in the background that manages all the packets while also connecting to the real server. This does get messy fast because you have to manage both incoming and outgoing packets but as long as you take care to keep the code clean while writing it you should be good. Now if you need to do anything like modify the main program (Assuming you will be using C# for the job) you can use [URL="http://www.pinvoke.net/default.aspx/kernel32.readprocessmemory"]ReadProcessMemory[/URL] or use [url=https://sites.google.com/site/robertgiesecke/Home/uploads/unmanagedexports]To create your server as a unmanaged library, Add it to the base program's IAT (Import Address Table) and patch in your start function somewhere in the startup code. After that you can use use [URL="http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marshal(v=vs.110).aspx"]Marshal[/URL] to move data around and [URL="http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.unmanagedfunctionpointerattribute.aspx"]UnmanagedFunctionPointer[/URL] to make function calls. If you are curious about any speed issues I have a similar library hooked into the input processing and physics loop of a game and have noticed no slowdowns what so ever.
[editline]ohmy[/editline]
Oh god facepunch raped the formatting I did and turned it into a giant block of text :suicide:[/QUOTE]
What? Thats already more then any other solution in this thread, and would only work if it would always be communicating with the same address.
[editline]8th January 2013[/editline]
Like if you actually want to overkill it, and make a proxy there is a lot easier method.
The game launches "RADS\solutions\lol_game_client_sln\releases\0.0.0.204\deploy\League of Legends.exe" with the IP/Port as arguments,
you can just rename the executable, and replace it with the executable of your proxy, who will then start the game executable with Localhost as IP.
[QUOTE=OldFusion;39143718]What? Thats already more then any other solution in this thread, and would only work if it would always be communicating with the same address.
[editline]8th January 2013[/editline]
Like if you actually want to overkill it, and make a proxy there is a lot easier method.
The game launches "RADS\solutions\lol_game_client_sln\releases\0.0.0.204\deploy\League of Legends.exe" with the IP/Port as arguments,
you can just rename the executable, and replace it with the executable of your proxy, who will then start the game executable with Localhost as IP.[/QUOTE]
Well that's fucking fantastic! You just saved me from having to use C.
[editline]8th January 2013[/editline]
Actually, game patches would make me replace the executable every time, wouldn't they?
Working on that platformer still, still needs a million hours of work. But look some really rough collision!
[vid]https://dl.dropbox.com/u/78160842/collision_1.webm[/vid]
[QUOTE=Topgamer7;39144743]Working on that platformer still, still needs a million hours of work. But look some really rough collision!
[vid]http://puu.sh/1Lhxr[/vid][/QUOTE]
Why isn't this webm
[QUOTE=esalaka;39144769]Why isn't this webm[/QUOTE]
Well it's VP8, the video codec that is webm, but vdub won't save in anything other then avi. I fixed it.
[QUOTE=Topgamer7;39144743]Working on that platformer still, still needs a million hours of work. But look some really rough collision![/QUOTE]
Your physics seem to be a bit... off.
[QUOTE=Larikang;39145566]Your physics seem to be a bit... off.[/QUOTE]
Probably just lag due to video recording. Unless you're talking about how he can fly.
[QUOTE=Darwin226;39135558]Hey guys. How would I go about making a proxy application that processed packets from a certain server before forwarding them on the the application they were meant for. I need to be able to change them as well.
Perl tells me I can inject the application and hook into it's connect and stuff but that sounds a bit to invasive for me. Also, I have no idea how to do any of those things.
He also mentioned WinPCap as an option but apparently it's very low level.
Ideally, I'd like to have the program not do anything to the application it's proxying AND have the ability to read packets at a high enough level that I don't need to assemble chat strings manually.
My intentions aren't malicious. The program would only be used by me (and the people who want it) to additionally censor the ingame chat in LoL.[/QUOTE]
[url]http://aluigi.altervista.org/mytoolz.htm#proxocket[/url]
this is quite easy to use, already has all the hooks setup you just need to create a dll that exports your version of the functions you need to hook. acts as a dll proxy so no need to inject. idk if lol has any kind of anticheat but if it does this is probably detected, you'd have to write something to bypass the checks then
[QUOTE=Darwin226;39135558]Hey guys. How would I go about making a proxy application that processed packets from a certain server before forwarding them on the the application they were meant for. I need to be able to change them as well.
Perl tells me I can inject the application and hook into it's connect and stuff but that sounds a bit to invasive for me. Also, I have no idea how to do any of those things.
He also mentioned WinPCap as an option but apparently it's very low level.
Ideally, I'd like to have the program not do anything to the application it's proxying AND have the ability to read packets at a high enough level that I don't need to assemble chat strings manually.
My intentions aren't malicious. The program would only be used by me (and the people who want it) to additionally censor the ingame chat in LoL.[/QUOTE]
Better than using an API Hook against winsock, i'd suggest you to look before in League of Legend's files, there are multiple lists for every languaje with the words that are banned by default, you can simply edit this files.
MitM, Proxies and Hooks would tragically slow down yor connection speed if chat information is hard to identify.
[B]edit:[/B]
you can use dargon manager to open packed files, i'm now looking for the files I told you
some of them are in
League of Legends\RADS\projects\lol_game_client\filearchives\[U]*version*[/U]\DATA\LanguageFilters
still looking for
[QUOTE=pepin180;39146058]Better than using an API Hook against winsock, i'd suggest you to look before in League of Legend's files, there are multiple lists for every languaje with the words that are banned by default, you can simply edit this files.
MitM, Proxies and Hooks would tragically slow down yor connection speed if chat information is hard to identify.
[B]edit:[/B]
you can use dargon manager to open packed files, i'm now looking for the files I told you[/QUOTE]
The thing is, I don't really care about censoring individual words.
I don't know how familiar you are with the LoL (or MOBA in general) community but it's really awful. People rage 90% of games and I'll be damned if I don't lose half of those due to the said rage. Not to get too off topic but when I think I'm playing well and someone exclaims they'll report me because I didn't wipe their ass when they were taking a shit in the bush or something I often get angry. Sometimes no amount of self control can help it.
My go to solution has been to mute almost everyone every game but then you miss out on tactics and you miss out on the few that are actually decent human beings.
But I'm a programmer so why not make my own solution to this problem? Simply detect messages that have some keywords in them, that are in caps, that are structured in a specific way... what ever, and just not show them ingame.
I basically want to fool myself into thinking my team isn't raging at all. Yes. It has gone that far.
The reason I don't want to do anything to intrusive is because I'd like to release this program to the community and maybe help out a few more people.
[QUOTE=Darwin226;39146220]The thing is, I don't really care about censoring individual words.
I don't know how familiar you are with the LoL (or MOBA in general) community but it's really awful. People rage 90% of games and I'll be damned if I don't lose half of those due to the said rage. Not to get too off topic but when I think I'm playing well and someone exclaims they'll report me because I didn't wipe their ass when they were taking a shit in the bush or something I often get angry. Sometimes no amount of self control can help it.
My go to solution has been to mute almost everyone every game but then you miss out on tactics and you miss out on the few that are actually decent human beings.
But I'm a programmer so why not make my own solution to this problem? Simply detect messages that have some keywords in them, that are in caps, that are structured in a specific way... what ever, and just not show them ingame.
I basically want to fool myself into thinking my team isn't raging at all. Yes. It has gone that far.
The reason I don't want to do anything to intrusive is because I'd like to release this program to the community and maybe help out a few more people.[/QUOTE]
That's actually not a bad idea. I found that LoL improved a lot after they added the honor system, but I don't play it very much, so I may have just had a few decent games.
[QUOTE=Darwin226;39146220]The thing is, I don't really care about censoring individual words.
I don't know how familiar you are with the LoL (or MOBA in general) community but it's really awful. People rage 90% of games and I'll be damned if I don't lose half of those due to the said rage. Not to get too off topic but when I think I'm playing well and someone exclaims they'll report me because I didn't wipe their ass when they were taking a shit in the bush or something I often get angry. Sometimes no amount of self control can help it.
(...)[/QUOTE]
I know that feel.
You may try to see if you can identify chat messages in sent packets, Wireshark is a really nice tool at the time of analyze your own traffic, this may help you discovering where and how chat messages are stored.
Once you discover this, if you are using Windows, the most efficient way I know is to hook recv function from the Winsock api (file ws2_32.dll).
I suppose the "proxocket" library allows you to do this in an easy way, I've never used it, but if you prefer to see this working 'from the inside', or just feel curious about it, I have coded some time ago a 'hook' class which allows you to get any argument passed to any function in your own process, and optionally, replace this function call with other of your interest.
Oh, wait, i said in your own process, so, what if i want to do that in other process?
Well, A process can easily be forced to load a dll (when you have administrator privileges), just look for 'dll injection' in google, the best paper i know about this is written in spanish.
Have luck with this project, if you are in euw server I can help you sending chat messages for you to read it with wireshark.
(this is going out of waywo, i think)
[img]http://i.imgur.com/axQwz.png[/img]
[img]http://i.imgur.com/0v3cu.png[/img]
looks like we got ourselves a rager
[highlight](User was banned for this post ("Not what you are working on" - verynicelady))[/highlight]
[QUOTE=NovembrDobby;39147593][img]http://i.imgur.com/axQwz.png[/img]
[img]http://i.imgur.com/0v3cu.png[/img]
looks like we got ourselves a rager[/QUOTE]
I hate posts like this. Who actually gives enough of a shit about ratings to go to the effort of taking screenshots of them? What a waste of energy
[highlight](User was banned for this post ("Report don't reply" - verynicelady))[/highlight]
[QUOTE=KmartSqrl;39148233]I hate posts like this. Who actually gives enough of a shit about ratings to go to the effort of taking screenshots of them? What a waste of energy[/QUOTE]
I hate posts that point out how annoying posts are that point out ratings. Like god... :D
[highlight](User was banned for this post ("This post is not about the thread topic" - verynicelady))[/highlight]
[QUOTE=krix;39142315]I'm aware that it's just personal preference, but if anything I think that Bullet Time should lower the saturation instead of increasing it.[/QUOTE]
I'll probably let people change it like how you can change your choice of colour correction in Payday. I'll get a nice default that everybody agrees on, but what I think looks nice, other people won't.
I feel like asking some questions, but they don't deserve a thread. Should I make a 'quick questions that don't deserve their own thread' thread?
I just don't want to spam it here or in the WDYNHW thread...?
[editline]8th January 2013[/editline]
They are completely random.
[QUOTE=Se1f_Distruct;39148574]I feel like asking some questions, but they don't deserve a thread. Should I make a 'quick questions that don't deserve their own thread' thread?
I just don't want to spam it here or in the WDYNHW thread...?
[editline]8th January 2013[/editline]
They are completely random.[/QUOTE]
You mean like this very same one? Also, there's WDYNHW
[QUOTE=Se1f_Distruct;39148574]I feel like asking some questions, but they don't deserve a thread. Should I make a 'quick questions that don't deserve their own thread' thread?
I just don't want to spam it here or in the WDYNHW thread...?
[editline]8th January 2013[/editline]
They are completely random.[/QUOTE]
As I understand it, WDYNHW is a 'quick questions that don't deserve their own thread' thread, or at least it started as that.
I'll ask there then, thanks!
I'm working on making my Visual Studio not kill my eyes.
[img] http://filesmelt.com/dl/visstud.png[/img]
Anyway to get the
"File Edit View"
bar and Solution explorer to be dark as well?
[QUOTE=MadPro119;39149512]I'm working on making my Visual Studio not kill my eyes
Anyway to get the
"File Edit View"
bar and Solution explorer to be dark as well?[/QUOTE]
[url]http://visualstudiogallery.msdn.microsoft.com/20cd93a2-c435-4d00-a797-499f16402378/[/url]
[QUOTE=Spero78;39149737][url]http://visualstudiogallery.msdn.microsoft.com/20cd93a2-c435-4d00-a797-499f16402378/[/url][/QUOTE]
"This extension is not installable on any currently installed products."
is what I get when I download and run it. Hmm odd.
[editline]8th January 2013[/editline]
Thanks though.
[QUOTE=Neo Kabuto;39146436]That's actually not a bad idea. I found that LoL improved a lot after they added the honor system, but I don't play it very much, so I may have just had a few decent games.[/QUOTE]
Not really. Nobody cares about honor, it's just a gimmick. Everybody already has a red ribbon, people only care about blue/green/yellow ribbons because they're actually quite hard to get, but even then it doesn't mean anything.
[QUOTE=MadPro119;39150300]"This extension is not installable on any currently installed products."
is what I get when I download and run it. Hmm odd.
[editline]8th January 2013[/editline]
Thanks though.[/QUOTE]
Just realized you are using C# Express, Extensions aren't available to express editions
Sorry, you need to Log In to post a reply to this thread.