Comments (6)
That's because you're using a HashSupport to send the packet. It takes as the first argument the name or the hash of the packet.
If you want to use the header id, then don't use the HashSupport, or remove the header from the packet and add the hash/name as the first argument of the function.
from g-earth.
RoomUserTalk: {l}{u:830}{i:6313}{s:whatever}{i:0}{i:0}{i:0}{i:-1}
Don't you see that the string is in the second position?
do:
HPacket packet = message.getPacket();
packet.readInteger(); // ADD THIS
String speechtext = packet.readString();
from g-earth.
Thanks! There is another problem. This is the code:
protected void initExtension() {
hashSupport = new HashSupport(this);
hashSupport.intercept(HMessage.Side.TOCLIENT, "RoomUserTalk", this::goSendMessage);
}
private void goSendMessage(HMessage message) {
HPacket packet = message.getPacket();
String speechtext = packet.readString();
sendToServer(new HPacket("{l}{u:280}{s:"+speechtext+"}{i:0}{i:0}"));
}
the speechtext variable return empty. What is the reason?
from g-earth.
Check RoomUserTalk's structure, it doesn't start with a string, so it can't read it or it reads a corrupted one
from g-earth.
mmm, i'm still trying but i dont get it...
from g-earth.
Now it's clear! Thank you very much. I appreciate it. ;)
from g-earth.
Related Issues (20)
- Unable to acess jarfile G-Earth.jar HOT 1
- "COULD NOT FIND RC4 TABLE" - Mac OS HOT 2
- Habbo disconnect on 59% when using G-earth HOT 11
- issue with programs connecting with extension port HOT 8
- G-earth won't connect (macos) HOT 3
- Cant install new extensions HOT 2
- G-Earth on macbook m1 ? HOT 2
- Nitro HOT 1
- Feature: Only intercept/manipulate packets of interest HOT 2
- Nitro version HOT 1
- Websocket disconnection
- Problem when connecting G-Earth to a retroserver of the "Nitro" client type HOT 3
- Black screen when trying to connect gearth with unity HOT 1
- Can't Connect with Nitro in a Retro
- My G-Earth doesn´t connect to Habbo. PLS HELP (Windows)
- Mac OS - Can't focus Window
- G-Earth does not open - Win11 (Solved by new dl)
- Please help HOT 2
- New port habbo.com
- .
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from g-earth.