[RELEASE][SRC] Java ROTMG classes for Server, Client, Proxy and Base

Posts 31–45 of 60 · Page 3 of 4
Quote Originally Posted by Ikulip View Post
If you open up https://realmofthemadgod.appspot.com/char/list?guid={accountemailhere}&password={accountpass here] with any random account you can view the ips of different nexus', the actual IP for USEast3 is 50.19.47.160 which is commented out right next to it. I also can't PM you as I'm under 10 posts myself.
Thanks it worked! However, i am now trying to log my characters in that are not newly created wizards but accounts attached to an email and password. I am not entirely sure how to do this. I am first sending a HELLO_Packet with the right login details, that is accepted and a MAPINFO_Packet is returned. I am then assuming a client.base.GameClient.connectLoadChar(int charr) should be used. I do not know what the parameter charr is. 0 and 1 do not work, returning the error "Character not found". I am therefore assuming that you need to enter the character's id but i don't know how to access these, simply sending a HELLO_Packet does not return any new packets that contain a list of my characters (as far as i am aware) so i have no way of sending a valid LOAD_Packet with client.base.GameClient.connectLoadChar. Can you direct me to where i am making a mistake.

Thanks i am REALLY enjoying scripting characters to do stuff!
CharId is the number of your character, it goes up by one for every new character, the best way to get it is to parse https://realmofthemadgod.appspot.com/char/list?guid={accountemailhere}&password={accountpass here} as it tells you the ids for your characters, however, if you're only going to be using them for nexus stuff (ie. no chance of dying) you could just assume that it will be 1.
@Igzz That's the proxy you're running there, setup to use it is the same as marines.
@balrajrox Well you can always learn.
dude i am 13!
i dont even know wat is .exe file. how am i supposed to write?
Thanks for the new uploads!

---------- Post added at 04:14 PM ---------- Previous post was at 03:08 PM ----------

I'm getting an error saying that it can't connect to that IP.

---------- Post added at 06:06 PM ---------- Previous post was at 04:14 PM ----------

I got this far, could anyone give me any tips?

I configured host file same as marines but i still cant get past proxy message : Waiting for connection...
I tried running rotmg on firefox , chrome and flash projection but nothing works.

When i export from eclipse project rotmgclient as runnable jar its not working.
I get message :

Connecting to 184.169.211.37.
Failed to connect to 184.169.211.37 : Connection timed out: connect

And lot of empty log files in client folder.


Can you help me ? Please...
@zakraj8 as far as i am aware 184.169.211.37 is not a RotMG server, this is a list of valid servers.

USWest 50.18.113.133
USMidWest 107.22.218.252
EUWest 46.137.187.86
USEast 184.72.218.199
AsiaSouthEast 46.137.247.5
USSouth 107.22.231.55
USSouthWest 50.18.176.194
EUEast 46.51.176.123
EUNorth 176.34.240.11
EUSouthWest 176.34.240.126
EUWest2 46.137.143.87 //ec2-46-137-143-87.eu-west-1.compute.amazonaws.com
USEast3 50.19.47.160 //ec2-50-19-47-160.compute-1.amazonaws.com
USWest2 184.169.130.44
USMidWest2 174.129.56.145 //ec2-174-129-56-145.compute-1.amazonaws.com
USEast2 23.21.243.164
USNorthWest 184.169.131.108
USSouth2 107.20.55.255 //ec2-107-20-55-255.compute-1.amazonaws.com
EastAsia 46.137.218.95
USSouth3 204.236.195.161 //ec2-204-236-195-161.compute-1.amazonaws.com
EUSouth 176.34.71.225 //ec2-176-34-71-225.eu-west-1.compute.amazonaws.com
EUNorth2 46.137.38.91 //ec2-46-137-38-91.eu-west-1.compute.amazonaws.com

I have not looked at the proxy, so forgive me if i am far off the mark but i am assuming the first step towards you getting it working is to use a valid server.

---------- Post added at 07:27 PM ---------- Previous post was at 06:01 PM ----------

How do you make a player shoot? I am trying to shoot on a wizard directly east, however i am having difficulties. This is as far as i got, from watching ALLYSHOOT_Packet s i am guessing my containerType is 2711 and wizards appear to send two shoot packets at the same time. This is what i have so far, but it doesn't work.

for (int i = 0; i < 40; i = i + 2){
PLAYERSHOOT_Packet shoot = new PLAYERSHOOT_Packet();
shoot.angle_ = (float) 0;
shoot.bulletId_ = i;
shoot.containerType_ = 2711;
shoot.startingPos_ = gCli.gCon.world.getPosition();
shoot.time_ = gCli.gCon.world.getCurrentTick();
PLAYERSHOOT_Packet shoot2 = new PLAYERSHOOT_Packet();
shoot2.angle_ = (float) 0;
shoot2.bulletId_ = i + 1;
shoot2.containerType_ = 2711;
shoot2.startingPos_ = gCli.gCon.world.getPosition();
shoot2.time_ = gCli.gCon.world.getCurrentTick();
gCli.gCon.sendPacket(shoot2);
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

Thanks in advance for any help.
Quote Originally Posted by asdfghjkl122 View Post
shoot.time_ = gCli.gCon.world.getCurrentTick();
shoot.time_ = gCli.currentTime();



On another note, I can't setup the damn proxy correctly in order to view packets. For example, the possible parameters for INVDROP and which packet for using abilities is something I want to find out and it's rather annoying without it set up. Unless I'm going about viewing these packets in a wrong way?
uhmm how do u use this thing? can some one tell me what to use or how to make it?
asdfghjkl122 , i changed Ip adress to EuSouth , i created and spawned in nexus about 160 wizards , everyone see them , everyone have lags but i cant move or do anything with them.
They all are just sitting in nexus.





When i try to use proxy i have only Waiting for connection...

Is there any way to move or write with them ?
It would be great if someone could write me how to do it or PM me with already compiled , good jar file.
@zakraj8 looks like you haven't added a follow name in client.multibox.MultiboxListener or you haven't even attached a MultiboxListener to your client.GameClient.

I have been experiencing issues when characters are paused, within around 15s the characters will receive a FAILURE_Packet "Connection to server Lost". I am also experiencing characters disconnecting when using ~20 characters, i will have around 1/3 receive a FAILURE_Packet "Protocol Error" this error will occur randomly and occur in individual characters independent from other characters.

Anyone solved these problems? they are again beyond me to debug
Quote Originally Posted by asdfghjkl122 View Post
@zakraj8 looks like you haven't added a follow name in client.multibox.MultiboxListener or you haven't even attached a MultiboxListener to your client.GameClient.

I have been experiencing issues when characters are paused, within around 15s the characters will receive a FAILURE_Packet "Connection to server Lost". I am also experiencing characters disconnecting when using ~20 characters, i will have around 1/3 receive a FAILURE_Packet "Protocol Error" this error will occur randomly and occur in individual characters independent from other characters.

Anyone solved these problems? they are again beyond me to debug
I can't even get as far as you .
Argh , i just found that it isnt ready to multibox client... I need to create code by myself...

I don't know too much about java , i can create wizards , move with them and write text set in eclipse , can someone tell me how to make wizards will write text that my char will say ?


My current code about writing text :
Code:
 @override
	public void loop() {
		PLAYERTEXT_Packet uppp = new PLAYERTEXT_Packet();
		uppp.text_ = textt;
		gCon.sendQueue.add(uppp);

	}
Think about what packet is received when someone else says something, you can then check if it was you who sent it and check what its telling the client to do. For example, you might say "!say Lol, some text.", you would be checking for the packet received when someone says something, checking if the sender is you and then checking if it starts with !say and then if it does, sending a PLAYERTEXT packet with that text.
What packets do i need to send to shoot and do damage? Sending a PLAYERSHOOT_Packet, it gives the visuals and looks like i hit the monsters, however it doesn't appear to do any damage to the monsters. What else am i missing?

Thanks in advance.
Ikuflip, are you by any chance interested in selling the completed client?
Posts 31–45 of 60 · Page 3 of 4
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?