I like the progress shown so far. Hope the alpha goes well and you can extend this farther..(many have tried..)
Printable View
I like the progress shown so far. Hope the alpha goes well and you can extend this farther..(many have tried..)
Lol, I was stucked @ profile, but Josh did help me out, one bool false was missing ^^
http://cdn.gl/VorpeX/prjReborn/s/prjReborn-Screen-3.png
There is something missing oO
Look at mine:
http://i.imgur.com/P17qP.png
Ye, the images, don't got them yet.
EDIT:
Recoding all stuff to C# .NET (Cause of being bored at this moment.)
http://www.grabilla.com/02219-7c9acc...6b8a97aa80.png
Good luck :D
Lol @ C#, done in 1 hour:
http://www.grabilla.com/02219-183d92...2af3c980ee.png
EDIT:
Lol @ Stress stuff:
http://img837.imageshack.us/img837/4...2300200020.png
Why the hell are you using Spring? Something tells me you don't have the slightest clue in what you are doing here.
& You don't need it for Maven (lol)
I have a request. If you would please, please, please build the MySQL Connector INTO the emu. I have a holo and a phoenix server running, and my Holo server can't die! Or else people forget about the memories..<3
Bump for updates.
Bring up my post..
Soon I'll start making update's again, reallife is right now, and got some coding feelings again, so keep an eye on this topic :)
EDIT:
http://www.grabilla.com/0231d-63dfdd...053d397a65.png
RoomManager Recoded:
Recoded Room Helpers:Code:package prjVpX.reborn.game.managers;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import prjVpX.prjvpx;
import prjVpX.logger.Logger;
import prjVpX.reborn.cache.HabboCache;
import prjVpX.reborn.cache.RoomModelCache;
import prjVpX.reborn.database.DatabaseClient;
import prjVpX.reborn.game.managers.helpers.Room;
import prjVpX.reborn.message.ServerMessage;
public class RoomManager {
public static List<Room> RoomList = new ArrayList<Room>();
public static HashMap<Integer, Room> RoomByIdList = new HashMap<Integer, Room>();
public RoomManager() throws SQLException, ClassNotFoundException, Exception
{
GenerateAll();
}
public static ResultSet getSQL() throws ClassNotFoundException, SQLException, Exception
{
DatabaseClient DB = new DatabaseClient(prjvpx.Database);
return DB.Query("SELECT * FROM rooms");
}
public static void AddRoomToHashMapOrList(Room sRoom, Integer sId)
{
if(RoomList.contains(sRoom))
return;
RoomList.add(sRoom);
if(RoomByIdList.containsValue(sRoom))
return;
RoomByIdList.put(sId, sRoom);
}
public static void CreateRoom(Integer sId, Integer sOwner, String sName, String sDesc, String sModel)
{
Room NewRoomForMap = new Room(sId, sOwner, sName, sDesc, sModel);
AddRoomToHashMapOrList(NewRoomForMap, sId);
}
public static void GenerateAll() throws SQLException, ClassNotFoundException, Exception
{
ResultSet Set = getSQL();
while(Set.next())
{
CreateRoom(Set.getInt("id"), Set.getInt("ownerid"), Set.getString("name"), Set.getString("description"), Set.getString("model"));
}
Logger.log(RoomManager.class, "Cached " + RoomManager.RoomList.size() + " Room's into the RoomManager");
}
public static List<Room> getRoomsForID(Integer ID)
{
List<Room> R = new ArrayList<Room>();
for(Room tRoom : RoomList)
{
if(tRoom.Owner == ID)
{
R.add(tRoom);
}
}
return R;
}
public static Room getRoomByID(Integer ID)
{
for(Room fRoom : RoomList)
{
if(fRoom.Id == ID)
{
return fRoom;
}
}
return null;
}
public static void SendMessageToAllInRoom(Integer RoomId, ServerMessage sMessage)
{
if(getRoomByID(RoomId) != null)
{
for(HabboCache User : getRoomByID(RoomId).UsersInRoom)
{
User.sendBytes(sMessage);
}
}
}
public static void SendMessageToAllInRoomInsteadOfMe(Integer myId, Integer RoomId, ServerMessage sMessage)
{
if(getRoomByID(RoomId) != null)
{
for(HabboCache User : getRoomByID(RoomId).UsersInRoom)
{
if(User.Id == myId)
return;
User.sendBytes(sMessage);
}
}
}
}
Code:package prjVpX.reborn.game.managers.helpers;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import prjVpX.reborn.cache.HabboCache;
import prjVpX.reborn.cache.RoomModelCache;
import prjVpX.reborn.cache.ServerEvents;
import prjVpX.reborn.game.Session;
import prjVpX.reborn.message.ServerMessage;
public class Room {
public Integer Id;
public Integer Owner;
public String Name;
public String Desc;
public String Model;
public List<HabboCache> UsersInRoom = new ArrayList<HabboCache>();
public Room(Integer sId, Integer sOwner, String sName, String sDesc, String sModel)
{
this.Id = sId;
this.Owner = sOwner;
this.Name = sName;
this.Desc = sDesc;
this.Model = sModel;
}
public void AddUserToRoom(HabboCache User)
{
if(UsersInRoom.contains(User))
return;
UsersInRoom.add(User);
}
public RoomModelCache getRoomModel()
{
if(RoomModelCache.ModelsByName.containsKey(this.Model))
return RoomModelCache.ModelsByName.get(this.Model);
return null;
}
public void RemoveUserFromRoom(HabboCache User)
{
if(!UsersInRoom.contains(User))
return;
UsersInRoom.remove(User);
}
public void UserLeavesRoom(HabboCache User)
{
if(User != null)
{
ServerMessage GetOut = new ServerMessage(ServerEvents.GetOutOfRoom);
GetOut.writeString(User.Id + "");
User.sendBytes(GetOut);
}
}
}
Nice updates you told me over msn! :D
I hope you post them xD
Ye, some screen's from the progress atm.
http://www.grabilla.com/0231d-dec221...c4e427a906.png
http://www.grabilla.com/0231d-b71252...7bd3d9ee07.png
http://www.grabilla.com/0231d-64c4fa...3c0e4a6384.png
I like how quickly you're making progress. What's the next step to the "reborn" dream?
I'm busy with Item Buying and Placing Item in room, then I'll start on Snowstorm..
SnowStorm...if you're the first one to do it...your emulator can make a hotel jump to the top..instantly...plans for horses?
Also, where are people getting that kind of avatar? I'm seeing them everywhere and it's driving me insane..
G'luck with it Maurice, seems awesome :D
Will you be putting this up on a public git/svn repo?
p.s: what's your Skype?
Posted via Mobile Device