Re: Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast]
Re: Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast]
Quote:
Originally Posted by
Funsolit
You need to set navigator_2014 or something like that in other.ini in other on the emulator.
And nice to see people from Denmark making new hotels. :)
Re: Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast]
I see both navigators and I set NAvigator.2014 to false..
Re: Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast]
Quote:
Originally Posted by
Thatboysab
I see both navigators and I set NAvigator.2014 to false..
Set it to true not false, this way you will see the new navigator, if you set to false, both will show up.
Re: Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast]
Quote:
Originally Posted by
Nevin Vu
Set it to true not false, this way you will see the new navigator, if you set to false, both will show up.
But I want the old navigator. lol
Re: Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast]
Quote:
Originally Posted by
Thatboysab
But I want the old navigator. lol
But you can't have the old navigator, its no longer supported.
Re: Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast]
Quote:
Originally Posted by
Diddy
But you can't have the old navigator, its no longer supported.
So whats the point of having the navigator 2014 on there lol.
Re: Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast]
Azure 190 and 184 little fix:
https://forum.ragezone.com/cache.php...df12e8c591.gif
Go to Others.cs and find:
Code:
case "predefined_noob_lobby":
var roomFwd = new ServerMessage(LibraryParser.OutgoingRequest("RoomForwardMessageComposer"));
roomFwd.AppendInteger(Convert.ToInt32(Azure.GetDbConfig().DbData["noob.lobby.roomid"]));
Session.SendMessage(roomFwd);
break;
Now under "break;" add:
Code:
case "random_friending_room":
var roomFwdFriending = new ServerMessage(LibraryParser.OutgoingRequest("RoomForwardMessageComposer"));
int result;
using (var queryReactor = Azure.GetDatabaseManager().GetQueryReactor())
{
queryReactor.SetQuery(
"SELECT id, users_now, users_max, state FROM rooms_data WHERE users_now >= 0 AND state = 'open' ORDER BY users_now DESC LIMIT 20");
var table = queryReactor.GetTable();
List<int> Rooms = new List<int>();
foreach (DataRow dataRow in table.Rows)
{
int room_id = Convert.ToInt32((dataRow[0]));
int users_now = (int)dataRow[1];
int users_max = (int)dataRow[2];
if (users_now < users_max)
{
Rooms.Add(room_id);
}
}
Random rnd = new Random();
var result_rnd = Convert.ToInt32(rnd.Next(Rooms.Count));
result = Rooms[result_rnd];
}
roomFwdFriending.AppendInteger(Convert.ToInt32(result));
Session.SendMessage(roomFwdFriending);
break;
And in the top of Other.cs add:
Code:
using System.Collections.Generic;
using System.Data;
This code select 20 rooms ordered by "users_now" and adds in one list, only the rooms with "users_now" < "users_max". Next gets random one room from the list and sends user in this room.
Re: Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast]
Quote:
Originally Posted by
tuttarealstep
Azure 190 and 184 little fix:
https://forum.ragezone.com/cache.php...df12e8c591.gif
Go to Others.cs and find:
Code:
case "predefined_noob_lobby":
var roomFwd = new ServerMessage(LibraryParser.OutgoingRequest("RoomForwardMessageComposer"));
roomFwd.AppendInteger(Convert.ToInt32(Azure.GetDbConfig().DbData["noob.lobby.roomid"]));
Session.SendMessage(roomFwd);
break;
Now under "break;" add:
Code:
case "random_friending_room":
var roomFwdFriending = new ServerMessage(LibraryParser.OutgoingRequest("RoomForwardMessageComposer"));
int result;
using (var queryReactor = Azure.GetDatabaseManager().GetQueryReactor())
{
queryReactor.SetQuery(
"SELECT id, users_now, users_max, state FROM rooms_data WHERE users_now >= 0 AND state = 'open' ORDER BY users_now DESC LIMIT 20");
var table = queryReactor.GetTable();
List<int> Rooms = new List<int>();
foreach (DataRow dataRow in table.Rows)
{
int room_id = Convert.ToInt32((dataRow[0]));
int users_now = (int)dataRow[1];
int users_max = (int)dataRow[2];
if (users_now < users_max)
{
Rooms.Add(room_id);
}
}
Random rnd = new Random();
var result_rnd = Convert.ToInt32(rnd.Next(Rooms.Count));
result = Rooms[result_rnd];
}
roomFwdFriending.AppendInteger(Convert.ToInt32(result));
Session.SendMessage(roomFwdFriending);
break;
And in the top of Other.cs add:
Code:
using System.Collections.Generic;
using System.Data;
This code select 20 rooms ordered by "users_now" and adds in one list, only the rooms with "users_now" < "users_max". Next gets random one room from the list and sends user in this room.
Why don't you juse use a LINQ query to get it much faster and no mysql usage >_<
Re: Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast]
Quote:
Originally Posted by
Spot Ify
Why don't you juse use a LINQ query to get it much faster and no mysql usage >_<
I don't know very well the c#, but i have tried to fix this. Now I read up on how to use LINQ query.
Re: Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast]
Maybe its possible to create a balloon system (like habbo 15)?
Re: Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast]
Any idea when next release will be out?
Re: Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast]
Can anyone send me a fixed Azure Emulator?
Re: Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast]
Installers for emu are now in the emu it self under the folder installers
Re: Azure Emulator 1.0 [Dev Release] - [Regularly Updated] - [Stable and Fast]
Some bugs that occur on a hotel that has 50+ users. Build 190.
* fuse_any_room_controller doesn't work correct, if you set it for example on 7, people with rank 5 can still edit and destroy the rooms. But they can't use roomfilter and things like that.
* For example, if the owner of the hotel takes up a furniture from a room, if the room owner relogs he will have the furniture that the owner picked up in his hand. And the owner will have it in his hand too, but if the owner puts it down in the room owners room, it will dissapear from his hand and will be in his room.
* Sometimes when you use wired movements and when you put down furniture on some blocks, and then pick the furniture up. The block stops allowing people to cross it.
* Some wireds do not save when you exit the room.
* Room settings stop working for some users, and some still have them, they can't bring up the roomsettings window.
* :dc command disconnects user, but also the guy that uses it.
* :userinfo x on users that are offline will make the user using it disconnect.
* You can spamm in whisper as many times as you want, no filter nothing.
* When people trade eachother, sometimes a random name will show up. And the name exists in the database but he or she is not online.
* You can't roll things on to each other, for example 2 dragons. But you can when you put them on stack 1. But they should work without that.
Azure exceptions log - Pastebin.com < there are 2 excpection logs here
Otherwise everything runs smoothly, i hope this will help you guys improve the emulator :D