SA-MP Forums Archive
[Plugin] MTA -> SA-MP Map Converter v1.0 (MTA DM & MTA Race support) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] MTA -> SA-MP Map Converter v1.0 (MTA DM & MTA Race support) (/showthread.php?tid=503008)

Pages: 1 2


Re: MTA -> SA-MP Map Converter v1.0 (MTA DM & MTA Race support) - Crayder - 06.02.2017

Quote:
Originally Posted by kurta999
View Post
Whats the problem with your version exactly?
Nothing noticeable, just VERY minor differences from whatever the real angles are.


Re: MTA -> SA-MP Map Converter v1.0 (MTA DM & MTA Race support) - kurta999 - 06.02.2017

Oh thats nothing, last function what i have tried gave me sometimes totaly diffetent angles. I think im going to test your version, im curious


Re: MTA -> SA-MP Map Converter v1.0 (MTA DM & MTA Race support) - IllidanS4 - 06.02.2017

I'd like to point out that my i_quat does precisely this - converting quaternions to SA-MP Euler angles. If they work the same way as vehicles, it should output correct results.


Re: MTA -> SA-MP Map Converter v1.0 (MTA DM & MTA Race support) - kurta999 - 06.02.2017

OMG. I havent saw it yet. I was away when you relesed it. No words, its simply AWESOME.


Re: MTA -> SA-MP Map Converter v1.0 (MTA DM & MTA Race support) - Crayder - 06.02.2017

Quote:
Originally Posted by kurta999
View Post
OMG. I havent saw it yet. I was away when you relesed it. No words, its simply AWESOME.
I think Nero_3D's is the best option. It's pretty insane! https://sampforum.blast.hk/showthread.php?tid=614857


Re: MTA -> SA-MP Map Converter v1.0 (MTA DM & MTA Race support) - Themasteroftri - 06.02.2017

OMG I love it, I can dev in MTA but find it hard in normal SAMP stuff thank you


Re: MTA -> SA-MP Map Converter v1.0 (MTA DM & MTA Race support) - kurta999 - 15.02.2017

I've just completed 3.0. See main post for more info.

Linux version is untested. I wasn't able to test it. At least I hope it works because I compiled it with Windows 10 bash
Another thing: LoadAllMaps() will return 0 and do nothing on linux. I wasn't able to enable std::experimental::filesystem on GCC. F....... linux. This function can be solved with YSF's file functions on linux.

Even more: Here is an IPL converter which should convert angles correctly, I haven't tested it because I don't have GTA installed. Thanks to Crayder for help: http://forum.sa-mp.com/showpost.php?...6&postcount=19


Re: MTA -> SA-MP Map Converter v1.0 (MTA DM & MTA Race support) - faxxe - 08.03.2017

Did you publish it under GPL License? I would like to reuse some parts of your code to create an .exe or linux commandline converter for about 20 object/vehicle formats.. and publish it by using GPL License


Re: MTA -> SA-MP Map Converter v1.0 (MTA DM & MTA Race support) - kurta999 - 08.03.2017

Just do it, i will change the licence later.


Re: MTA -> SA-MP Map Converter v1.0 (MTA DM & MTA Race support) - feheristi97 - 08.03.2017

could you convert the files to plugin version? it would be so much easier to download..


Re: MTA -> SA-MP Map Converter v1.0 (MTA DM & MTA Race support) - faxxe - 12.03.2017

Thanks.

Can you tell me where you have the part to parse the content of the XML map files? Im unable to find it right now, its exactly what i need


Re: MTA -> SA-MP Map Converter v1.0 (MTA DM & MTA Race support) - kurta999 - 12.03.2017

https://github.com/kurta999/MapConve...erter.cpp#L125


Re: MTA -> SA-MP Map Converter v1.0 (MTA DM & MTA Race support) - StRaffael - 24.03.2018

Bro, I have some problems with your plugin:
1. HOw to compile the plugin to .dll version(windows)?
2. When I tryed your plugin on linux and the server tryes to convert a MTA map it just crashes...here's the error log(with crash detect):
Quote:

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[09:06:25]
[09:06:25] Server Plugins
[09:06:25] --------------
[09:06:25] Loading plugin: crashdetect.so
[09:06:25] CrashDetect v4.15.1 is OK.
[09:06:25] Loaded.
[09:06:25] Loading plugin: streamer.so
[09:06:25]

*** Streamer Plugin v2.9.3 by Incognito loaded ***

[09:06:25] Loaded.
[09:06:25] Loading plugin: YSF.so
[09:06:25] ARRAY_ConsoleCommands: 8196920
[09:06:25]

[09:06:25] ===============================

[09:06:25] YSF - kurta999's version R19 loaded

[09:06:25] © 2008 Alex "Y_Less" Cole - © 2010 - 2016 kurta999

[09:06:25] Server version: 0.3.7 R2-1

[09:06:25] Operating System: Linux

[09:06:25] Built on: Mar 13 2017 at 00:24:15

[09:06:25] ===============================

[09:06:25] Loaded.
[09:06:25] Loading plugin: MapConverter.so
[09:06:25] *** Map Converter v3.0 loaded, made by kurta999
[09:06:25] Loaded.
[09:06:25] Loaded 4 plugins.

[09:06:25]
[09:06:25] Filterscripts
[09:06:25] ---------------
[09:06:25] Loading filterscript 'MapConverter.amx'...
[09:06:25] 1 - TestConverter.map
[09:06:25] [debug] Server crashed while executing MapConverter.amx
[09:06:25] [debug] AMX backtrace:
[09:06:25] [debug] #0 native MC_LoadMap () from MapConverter.so
[09:06:25] [debug] #1 000000e0 in public OnFilterScriptInit () from MapConverter.amx
[09:06:25] [debug] Native backtrace:
[09:06:25] [debug] #0 f735fe8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[09:06:25] [debug] #1 f7358bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[09:06:25] [debug] #2 f7359dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[09:06:25] [debug] #3 f735a226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[09:06:25] [debug] #4 f735fadc in ?? () from plugins/crashdetect.so
[09:06:25] [debug] #5 f7755cb0 in __kernel_rt_sigreturn () from linux-gate.so.1
[09:06:25] [debug] #6 f76336d0 in _ZNSt6localeaSERKS_ () from /usr/lib32/libstdc++.so.6
[09:06:25] [debug] #7 f7632910 in _ZNSt8ios_base7_M_initEv () from /usr/lib32/libstdc++.so.6
[09:06:25] [debug] #8 f768bf0f in _ZNSt9basic_iosIcSt11char_traitsIcEE4initEPSt15bas ic_streambufIcS1_E () from /usr/lib32/libstdc++.so.6
[09:06:25] [debug] #9 f7003901 in _Z7fexistsRKNSt7__cxx1112basic_stringIcSt11char_tr aitsIcESaIcEEE () from plugins/MapConverter.so
[09:06:25] [debug] #10 f7001060 in _ZN10CConverter7LoadMapERKNSt7__cxx1112basic_strin gIcSt11char_traitsIcESaIcEEEb () from plugins/MapConverter.so
[09:06:25] [debug] #11 f70041c5 in _Z12n_MC_LoadMapP6tagAMXPi () from plugins/MapConverter.so
[09:06:25] [debug] #12 080950e4 in ?? () from ./samp03svr
[09:06:25] [debug] #13 f735b94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[09:06:25] [debug] #14 f735e8f8 in ?? () from plugins/crashdetect.so
[09:06:25] [debug] #15 f7362916 in amx_Exec () from plugins/crashdetect.so
[09:06:25] [debug] #16 f735abe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[09:06:25] [debug] #17 f735e659 in ?? () from plugins/crashdetect.so
[09:06:25] [debug] #18 f72b64f6 in ?? () from plugins/streamer.so
[09:06:25] [debug] #19 080a12c6 in ?? () from ./samp03svr
[09:06:25] [debug] #20 080ab601 in ?? () from ./samp03svr
[09:06:25] [debug] #21 080aba0b in ?? () from ./samp03svr
[09:06:25] [debug] #22 080aa0fd in ?? () from ./samp03svr
[09:06:25] [debug] #23 f739d276 in __libc_start_main () from /lib32/libc.so.6

What can it be? Thank you very much