-
Posts
919 -
Joined
-
Days Won
887 -
Feedback
100%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Mali
-
-
Nice for 2014
- 6
-
On 11/16/2018 at 5:32 PM, Flourine said:
no.
self.OwnerMoney.SetText(localeInfo.NumberToMoneyString(str(exchange.GetElkFromSelf()))) self.TargetMoney.SetText(localeInfo.NumberToMoneyString(str(exchange.GetElkFromTarget())))
-
If you have Cryptopp 7.0.0 you'll see:
Spoiler'byte' was not declared in this scope
Open cipher.h and add;
using CryptoPP::byte;
Note:Also you can use std::byte (#include <cstddef>) but you need to change cryptopp declarations too.
- 2
- 1
- 1
- 1
- 6
-
If you have GCC>5 version, you'll see this error when the linking src:
Spoilerundefined reference to std::__cxx11::basic_string
Open (libpoly&libsql)/MAKEFILE and add to CFLAGS;
-D_GLIBCXX_USE_CXX11_ABI=1
Do not forget to rebuild libpoly!
- 1
-
-
Spoiler
#include "map" enum Languages { TR, EN, LANG_MAX, DEFAULT_LANG = TR, // change lang or use your multilang func example: GetLang() }; auto Translate(string input, int lang) { using namespace std; map<string, string> Langs[LANG_MAX]; Langs[TR]["TESTSTRING"] = "[TR]Test multilang"; Langs[EN]["TESTSTRING"] = "[EN]Test multilang"; if (not(Langs[lang].count(input)) or lang >= LANG_MAX) { sys_err("Error in [%s], chat[%s]", __FUNCTION__, input.c_str()); return "error"; } /* test only auto Lang_Name = [](auto lang) -> string { return lang == TR ? "TR" : "EN"; }; for (auto exist_langs : {TR, EN}) for (auto [inp,output] : Langs[exist_langs]) cout << "Lang:[" << Lang_Name(exist_langs) << "] " << "input: " << inp << " output: " << output << endl; */ return Langs[lang][input].c_str(); }
Usage:
ChatPacket(CHAT_TYPE_INFO, Translate("TESTSTRING", DEFAULT_LANG));
- 1
-
7 hours ago, krokogames said:
thanks but i have new error
can i replace code:
template <typename T> T MIN(T a, T b) { return a < b ? a : b; } template <typename T> T MAX(T a, T b) { return a > b ? a : b; } template <typename T> T MINMAX(T min, T value, T max) { T tv; tv = (min > value ? min : value); return (max < tv) ? max : tv; }
to:
template <typename T> T _MIN(T a, T b) { return a < b ? a : b; } template <typename T> T _MAX(T a, T b) { return a > b ? a : b; } template <typename T> T _MINMAX(T min, T value, T max) { T tv; tv = (min > value ? min : value); return (max < tv) ? max : tv; }
delete that codes from stl.h and use these:
note:
#include <algorithm>
- 1
-
Nice work bro, but active your windows
-
#Update
Added hide shop feauture
-
9 minutes ago, Galet said:
Hello,
That's fine and great, but I don't get the point. I think using a decoration system like official servers did is better, I don't think a lot of people will disable terrain, water, trees or even clouds
Good job anyway !
Tomorrow, I will add hide shops and you can delete water etc.
-
-
-
5 hours ago, zeimpekis9 said:
So, did you fixed it?
Yeah now party will create in all channels but still has some problem with online/offline problem.I don't have enough time but don't worry I will fix it.
- 1
-
2 hours ago, WLsj24 said:
Yes, the only problem is that if "Player1" is in Pyugmoo and "Player2" is in "Spider Dungeon", that is, the members of the party are in different core, (you know, cities are usually in the core1, and maps like Yongbi are usually in the core2) because in that case it will show the one in a different cores as [Offline] (even if both members are online) in the party. If @Mali61 fix that, then one could already speak of a functional version without bugs.
Please wait weekend I'm busy
- 3
-
#Update:
Fixed offline/online problem(party.cpp->SendPartyJoinAllToOne, uiparty.py->AddPartyMember)
Code improvement(party.cpp->P2PJoin)
- 2
-
6 minutes ago, Shang said:
In official servers the party is the same in all channels, looking your code without touching the db src... you can delete Official from the title.
What?
-
-
13 minutes ago, DeadSkull7 said:
Yeeeah.Sorry I don't see the video correctly.Btw you can use set it's will be better.Thank u again
Video is from old version :j
-
4 minutes ago, DeadSkull7 said:
So if player open shop in first time you push him in vector, if open again ? He will be existed so vector size don't change .. ?
Yes, size only change for 1 character.
-
-
9 minutes ago, ReFresh said:
@Mali61 You change it to no popout dialog when all slots are already opened?
yeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeessssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss I said fixed
- 1
-
18 hours ago, DeadSkull7 said:
Good job but i think if same player open shop don't increment seens counter will be better.Also, why you use vector ? And push every time ? in you case you don't want to chack if player opened shop or no to increment counter ! You can use single counter not vector.
int counter = 0;
-And push every time ?
Wrong! Not every time if ch isn't exist in vector control:
find(looked.begin(), looked.end(), ch) == looked.end()
-
16 hours ago, ReFresh said:
@Mali61 When I used the key and I have opened all slots I got 3 popout dialogs after yourself.
Dialogs for yes selection:
1st dialog translation - To open next slot you need none x keys - so it can't detect how many keys you need to open slot because you have already opened all slots
2nd dialog translation - You have already opened all slots. (was really hard to see in the video because it disappeared fast - but you can make video slower on youtube)
3rd dialog translation - You don't have needed amount of keys to open next slot
4th dialog translation - You have already opened all slots.
Dialog for no selection:
1st dialog translation - To open next slot you need none x keys - so it can't detect how many keys you need to open slot because you have already opened all slots
2th dialog translation - You have already opened all slots.
PS: No erros in sysser.
Video:
Fixed and added english lc (change uiinventory, game.py locale_game.txt)
- 1
-
On 13.07.2017 at 1:42 AM, Denis said:
Wouldn't it be better to store the "Guests" inside a vector and then check if the guest already exists in it, if yes don't add the guest to vector, if no add it to vector then send to client?
I'm just narrow-minded when it comes to quest flags haha
You're right.I updated topic.
Check Position for Shops
in Features & Metin2 Systems
Posted
syntax CheckValidPos(ch, type, distance)