• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

REPORT ALL 0.2 BUGS HERE (latest 0.2 svn)!

Status
Not open for further replies.
I fix the problem with lastMotd.txt
Here is path (game.cpp)[change function void Game::loadMotd()]:
Code:
void Game::loadMotd()
{
        FILE* file = fopen("lastMotd.txt", "r");
        if(file == NULL)
        {
                std::cout << "> ERROR: Failed to load lastMotd.txt" << std::endl;
                lastMotdNum = random_range(5, 500);
                return;
        }
        fscanf(file, "%d", &lastMotdNum);
        fclose(file);
        lastMotdText == g_config.getString(ConfigManager::MOTD);
}

Now working fine on Linux Debian Etch 4.0 I32.
Check it. :)

You only caused bugs in the code, now there's no point of saving the lastMotd in the file as you don't load it anyway... and this line has no effect:
lastMotdText == g_config.getString(ConfigManager::MOTD);
 
Yes, but now MOTD is loading from config.lua and lastMotdNum is loading from lastMotd.txt

Number and text saving in lastMotd.txt. Text is only used to check MOTD, if Motd(config.lua) != lastMotd.txt then server change text in file.
And yes, line:
Code:
lastMotdText == g_config.getString(ConfigManager::MOTD);
Isn't used, so can be removed (my bad :p).

But now is working on my system. It's not good idea? :p
 
.. and where do you check if the text in lastMotd is not same as config.lua? You never read it from the file if you change it the way you did and whats what I mean with that you only cause bugs. The lastMotdNum will never increase because both text in config.lua and lastMotdText will always be same.
 
Talaturen - Could you think of improving /closeserver and shutdown so that it won't cause crash?
 
.. and where do you check if the text in lastMotd is not same as config.lua? You never read it from the file if you change it the way you did and whats what I mean with that you only cause bugs. The lastMotdNum will never increase because both text in config.lua and lastMotdText will always be same.

Look:
Code:
nsXXXX:/home/forgottenserver/forgottenserver/tags/0.2# cat lastMotd.txt
332
Serwerek
nsXXXX:/home/forgottenserver/forgottenserver/tags/0.2# ./TheForgottenServer
The Forgotten Server - Version 0.2rc11 (Mystic Spirit).
A server developed by Talaturen, Kiper, Kornholijo, Jonern, Lithium, slawkens & Elf.
Visit our forum for updates, support and resources: http://otland.net/.
> WARNING: The Forgotten Server has been executed as root user, it is recommended to execute is as a normal user.

>> Loading config
>> Loading RSA key
>> Testing SQL connection... MySQL.
>> Loading bans
>> Loading vocations
>> Loading commands
>> Loading items
>> Loading script systems
>> Loading monsters
>> Loading quests
>> Loading outfits
>> Loading admin protocol config
>> Loading experience stages
>> Checking world type... PVP
>> Loading map
> Map size: 1000x1000.
> Map loading time: 2.101 seconds.
>> Loading raids
>> All modules has been loaded, server starting up...
> WARNING: The Forgotten Server has been executed as root user, it is recommended to execute is as a normal user.
>> Forgotten Server Online!

GOD Deamon has logged in.
GOD Deamon has logged out.

nsXXXX:/home/forgottenserver/forgottenserver/tags/0.2# cat lastMotd.txt
333
24/7


I only try fix... for my it's working.
If you can please fix this. :)
 
You sure don't understand what I'm trying to tell you, sure it works to run the server but does the lastMotdNum increase when you edit the motd? Doubt so.
 
You sure don't understand what I'm trying to tell you, sure it works to run the server but does the lastMotdNum increase when you edit the motd? Doubt so.

You talking about this(?):
nsXXXX:/home/forgottenserver/forgottenserver/tags/0.2# cat lastMotd.txt
332
Serwerek

nsXXXX:/home/forgottenserver/forgottenserver/tags/0.2# cat lastMotd.txt
333
24/7

Maybe I don't understand :p
 
Then.. how can we correctly fix this? :confused:

I cannot really see anything to fix, it works perfect for me both on laptop and on my server. Laptop is Ubuntu 8.04 (Hardy Heron) x86 and server is Debian 4 (Etch) x64 (amd64).
 
It seems no one has reported these, but they are 2 minor errors,

The white marble wall windows will not open, also if a person steps into a citizenship portal the entire server shuts down without notice..
 
It seems no one has reported these, but they are 2 minor errors,

The white marble wall windows will not open, also if a person steps into a citizenship portal the entire server shuts down without notice..
Those are scripting interface issues.
 
I still have trouble, my fast atack not obeying this, by default this been a figure of 2000 to file vocations.xml, how do I change this?
I await answers

I just download the latest REV 739 and not this fast atack longer responding to file vocations.xml, why this is happening?
I change the value of attackspeed = "2000" to attackspeed = "500" and not this fast almentando the atack that only happens to me?
I use Linux Debian.
 
It always lagg when i start the server.... even if its only on localhost

Any1 know what to do about that?
 
It always lagg when i start the server.... even if its only on localhost

Any1 know what to do about that?

Summon some NPC's and it's solved.
 
Well Tala, i have some small bugs to report... I don't know if some one have already reported but, this are the bugs i found on my server. (syr for my english)

First: When i open doors using a key (same action id on the key and on the door) it work fine but, when i try to close it using the same key i get this message "The key does not match".

Second: Players can use the rune "desintegrate" on a quest box...

Third: On my server rook have an area with sand and the rookers can summon scarabs. --LOL--
An good way to sove it is like i did on my server.

Code:
local holes = {468, 481, 483}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isInArray(holes, itemEx.itemid) == TRUE then
		doTransformItem(itemEx.uid, itemEx.itemid + 1)
		doDecayItem(itemEx.uid)
	elseif itemEx.itemid == 231 and itemEx.actionid == 7000 then
		local rand = math.random(1, 100)
		if rand == 1 then
			doCreateItem(2159, 1, toPosition)
		elseif rand > 95 then
			doSummonCreature("Scarab", toPosition)
		end
		doSendMagicEffect(toPosition, CONST_ME_POFF)

        elseif itemEx.itemid == 231 and itemEx.actionid == 0 then
		doSendMagicEffect(toPosition, CONST_ME_POFF)
       else
	return FALSE
	end
	return TRUE
end

With this, scarabs will only spawn if the "sand" have the action id = 7000

The last: The spells exori vis, flam, tera and frigo don't have range...

@Nesaj
 
what do you meen whit acc type??
there is no this as acc type on the database

changed the group id to 3
id 3 = God
 
Status
Not open for further replies.
Back
Top