Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Kepler - v21 Emulator [Java, MariaDB, Netty]

Status
Not open for further replies.

Bow

Skilled Illusionist
Joined
Jan 28, 2012
Messages
355
Reaction score
163
Re: Kepler - v13 Emulator [C11, SQLite3, libuv]

Good luck with this and hope to see more updates and whatnot. I would definitely use this when it's finished.

Upon testing, I received this error during installation.

Code:
~/Kepler# make
Scanning dependencies of target Kepler
[  2%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/array.c.o
[  4%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/common.c.o
[  6%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/deque.c.o
[  8%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/hashset.c.o
[ 10%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/hashtable.c.o
[ 12%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/list.c.o
[ 14%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/pqueue.c.o
[ 16%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/queue.c.o
[ 18%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/slist.c.o
[ 20%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/stack.c.o
[ 22%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/treeset.c.o
[ 24%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/treetable.c.o
[ 26%] Building C object CMakeFiles/Kepler.dir/src/lib/cthreadpool/thpool.c.o
[ 28%] Building C object CMakeFiles/Kepler.dir/src/main.c.o
In file included from /root/Kepler/src/main.c:6:0:
/root/Kepler/src/server/server_listener.h:1:10: fatal error: uv.h: No such file or directory
 #include "uv.h"
          ^~~~~~
compilation terminated.
CMakeFiles/Kepler.dir/build.make:374: recipe for target 'CMakeFiles/Kepler.dir/src/main.c.o' failed
make[2]: *** [CMakeFiles/Kepler.dir/src/main.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/Kepler.dir/all' failed
make[1]: *** [CMakeFiles/Kepler.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
 
Last edited:
Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,685
Re: Kepler - v13 Emulator [C11, SQLite3, libuv]

I'm sorry for the lack of updates, I had a segfault issue that made the server crash after re-entry when requesting to walk. That's been fixed now, so I'll start work on more features.

Good luck with this and hope to see more updates and whatnot. I would definitely use this when it's finished.

Upon testing, I received this error during installation.

Code:
~/Kepler# make
Scanning dependencies of target Kepler
[  2%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/array.c.o
[  4%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/common.c.o
[  6%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/deque.c.o
[  8%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/hashset.c.o
[ 10%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/hashtable.c.o
[ 12%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/list.c.o
[ 14%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/pqueue.c.o
[ 16%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/queue.c.o
[ 18%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/slist.c.o
[ 20%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/stack.c.o
[ 22%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/treeset.c.o
[ 24%] Building C object CMakeFiles/Kepler.dir/src/lib/collections/treetable.c.o
[ 26%] Building C object CMakeFiles/Kepler.dir/src/lib/cthreadpool/thpool.c.o
[ 28%] Building C object CMakeFiles/Kepler.dir/src/main.c.o
In file included from /root/Kepler/src/main.c:6:0:
/root/Kepler/src/server/server_listener.h:1:10: fatal error: uv.h: No such file or directory
 #include "uv.h"
          ^~~~~~
compilation terminated.
CMakeFiles/Kepler.dir/build.make:374: recipe for target 'CMakeFiles/Kepler.dir/src/main.c.o' failed
make[2]: *** [CMakeFiles/Kepler.dir/src/main.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/Kepler.dir/all' failed
make[1]: *** [CMakeFiles/Kepler.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

You didn't install libuv correctly, "uv.h" is a header file associated with libuv. If you followed my installation guide you should be able to compile it perfectly fine.

Installing libuv Library

Install the required packages first:

Code:
$ sudo apt-get install git
$ sudo apt-get install automake
$ sudo apt-get install libtool

Download the libuv source code.

Code:
$ git clone https://github.com/libuv/libuv.git

Enter the libuv directory.

Code:
$ cd libuv

Configure and compile it.

Code:
$ sh autogen.sh
$ ./configure
$ make
$ make check
$ make install
 

Bow

Skilled Illusionist
Joined
Jan 28, 2012
Messages
355
Reaction score
163
Re: Kepler - v13 Emulator [C11, SQLite3, libuv]

You didn't install libuv correctly, "uv.h" is a header file associated with libuv. If you followed my installation guide you should be able to compile it perfectly fine.

Installing libuv Library

Install the required packages first:

Code:
$ sudo apt-get install git
$ sudo apt-get install automake
$ sudo apt-get install libtool

Download the libuv source code.

Code:
$ git clone https://github.com/libuv/libuv.git

Enter the libuv directory.

Code:
$ cd libuv

Configure and compile it.

Code:
$ sh autogen.sh
$ ./configure
$ make
$ make check
$ make install

Thanks, I might have missed a step. I am at the part of executing the emulator and I have:
Code:
root@v13:~/Kepler# ./Kepler
[Kepler] Kepler Habbo server...
[Kepler] Written by Quackster 
[Kepler] 
[Kepler] Testing SQLite connection...
[Kepler] Database does not exist, creating...
[Kepler] Executing queries...
[Kepler] The connection to the database was successful!
[Kepler] 
[Kepler] Starting managers...
[Kepler] Starting server...

Is it supposed to hang at "Starting server..."? Also, is it okay to do a basic LAMP stack on the machine without the MySQL portion since you're using SQLite so I can use it as a localhost machine? Sorry to sound dumb as well, how would I go about start, stop, restart the emulator via command line?
 
Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,685
Re: Kepler - v13 Emulator [C11, SQLite3, libuv]

Thanks, I might have missed a step. I am at the part of executing the emulator and I have:
Code:
root@v13:~/Kepler# ./Kepler
[Kepler] Kepler Habbo server...
[Kepler] Written by Quackster 
[Kepler] 
[Kepler] Testing SQLite connection...
[Kepler] Database does not exist, creating...
[Kepler] Executing queries...
[Kepler] The connection to the database was successful!
[Kepler] 
[Kepler] Starting managers...
[Kepler] Starting server...

Is it supposed to hang at "Starting server..."? Also, is it okay to do a basic LAMP stack on the machine without the MySQL portion since you're using SQLite so I can use it as a localhost machine? Sorry to sound dumb as well, how would I go about start, stop, restart the emulator via command line?

Yeah, that's suppose to hang on "Starting server..." because it's blocking the main thread. I think if I move it to another thread I can fix that output. And yeah, no MySQL installation is required.

Also to start and stop it, you'd need to type CTRL+C on the keyboard which cancels it, and to start it, you'd need to type ./Kepler to run the executable again.

Here's my DCR's (including loader) by the way:
 
  • Like
Reactions: Bow

Bow

Skilled Illusionist
Joined
Jan 28, 2012
Messages
355
Reaction score
163
Re: Kepler - v13 Emulator [C11, SQLite3, libuv]

Yeah, that's suppose to hang on "Starting server..." because it's blocking the main thread. I think if I move it to another thread I can fix that output. And yeah, no MySQL installation is required.

Also to start and stop it, you'd need to type CTRL+C on the keyboard which cancels it, and to start it, you'd need to type ./Kepler to run the executable again.

Here's my DCR's (including loader) by the way:

Awesome, thank you. I purchased a domain and whatnot to run some testing on it. I set up everything, renamed your /v13/ directory to /dcr/, opened TCP ports 12321 & 30001 (inbound), started the emulator. However, I disconnect when trying to register. Did I miss something?
 
Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,685
Re: Kepler - v13 Emulator [C11, SQLite3, libuv]

Awesome, thank you. I purchased a domain and whatnot to run some testing on it. I set up everything, renamed your /v13/ directory to /dcr/, opened TCP ports 12321 & 30001 (inbound), started the emulator. However, I disconnect when trying to register. Did I miss something?

There should be no issues.. the server only listens on port 12321. I should make it configurable from the text file...

Does it make a connection to the server? Does it segfault?
 
Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,685
Re: Kepler - v13 Emulator [C11, SQLite3, libuv]

Updates

- Added: Lido queue.
- Added: Lido diving.
- Added: Lido voting.
- Added: Changing booths to change into swimmers for pools across all maps (Lido I, II and the Wobble Squabble area), with the curtains closing/opening etc.
- Added: Lido swimming, can enter/exit from ladders in the various pools in the public rooms, with splashing animation.
- Added: Catalogue page loading from database.

- Modified: Creating the server listening on its own threads so the main thread can now take commands, such as "quit" or "q".
- Modified: Implemented method to filter strings for various vulnerable characters when asked the client for user input.

- Fixed: Various memory leaks across the server.
- Fixed: A few pathfinder issues.

- Fixed: Segfault when using incorrect login details.
- Fixed: Segfault when trying to walk on a room after re-entry.

pDpMd1D - Kepler - v21 Emulator [Java, MariaDB, Netty] - RaGEZONE Forums


mZETsLi - Kepler - v21 Emulator [Java, MariaDB, Netty] - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,685
Re: Kepler - v13 Emulator [C11, SQLite3, libuv]

It looks really great!

Thanks, I'm not sure what to do next, whether that be doing catalogue purchases next and the hand/item handling or start with Habbo Club, etc.

I should really make a feature list of what I've done so far.
 
Custom Title Activated
Loyal Member
Joined
Oct 26, 2012
Messages
2,357
Reaction score
1,086
Re: Kepler - v13 Emulator [C11, SQLite3, libuv]

Thanks, I'm not sure what to do next, whether that be doing catalogue purchases next and the hand/item handling or start with Habbo Club, etc.

I should really make a feature list of what I've done so far.

I'd go with catalogue purchases and hand and then item placement etc. Club is nice but kind of useless in a retro environment due to the unlimited coins, I wouldn't call it a priority.
 
Joined
Apr 24, 2007
Messages
644
Reaction score
157
Re: Kepler - v13 Emulator [C11, SQLite3, libuv]

Still a pleasure to see your dev projects. This looks good and makes me nostalgic. Keep it up man !
 
Last edited:
Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,685
Re: Kepler - v13 Emulator [C11, SQLite3, libuv]

Updates

- Added: Show catalogue products on each page.
- Added: Show catalogue deals each page.

- Added: Item definitions (credits to Woodpecker for this :love:)
- Added: Item purchasing and inventory management (can't buy deals, yet).
- Added: Show hand items.

- Added: Redid pool queue and ticket management (only allow users on pool queue tiles if they have tickets).
- Added: Charge users tickets each time they dive.

- Added: Feature where certain headers are the only headers the connection is allowed to use until they log in, for security reasons.

- Fixed: Leaving in a sitting animation will show the user sitting next room they join.

Reminder: All source code is available here to play around with!

PtilxA - Kepler - v21 Emulator [Java, MariaDB, Netty] - RaGEZONE Forums


7qfhjew - Kepler - v21 Emulator [Java, MariaDB, Netty] - RaGEZONE Forums




Awesome Work , so the Lido works with tickets ?

Now it works with tickets, yes. :):
 

Attachments

You must be registered for see attachments list
Last edited:
Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,685
Re: Kepler - v13 Emulator [C11, SQLite3, libuv]

Looking great as always!

Thanks! :D: It took a while to display the catalogue items properly, there's a lot going behind the scenes just for the item name and description alone, because it's read from the external texts, among other things.
 
Junior Spellweaver
Joined
Oct 7, 2008
Messages
115
Reaction score
10
Re: Kepler - v13 Emulator [C11, SQLite3, libuv]

Im new to this but I believe I followed the tutorial correctly but every time it comes to using the make command after cmake . I get this error

CMakeFiles/Kepler.dir/src/game/player/player.c.o: In function `player_send':
player.c:(.text+0x347): undefined reference to `check_uv'
collect2: error: ld returned 1 exit status
CMakeFiles/Kepler.dir/build.make:1706: recipe for target 'Kepler' failed
make[2]: *** [Kepler] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/Kepler.dir/all' failed
make[1]: *** [CMakeFiles/Kepler.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
 
Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,685
Re: Kepler - v13 Emulator [C11, SQLite3, libuv]

Im new to this but I believe I followed the tutorial correctly but every time it comes to using the make command after cmake . I get this error

Delete the Kepler/ folder and re-download it, if you find it easier you can use the git clone command. I can tell from the error alone that you have a copy that I pushed to git that didn't compile. :eek:tt1:

Code:
$ git clone https://github.com/Quackster/Kepler/

You might also have to delete the CMake cache files too, the files/folder to delete are:

- CMakeFiles/
- cmake_install.cmake
- CMakeCache.txt
- Makefile

And follow through the compile steps again, just the compile steps, don't install the libraries again. :D:
 
Last edited:
Status
Not open for further replies.
Back
Top