Half-Life и Adrenaline Gamer форум
http://aghl.ru/forum/

Galileo - расширенная система голосований за карты
http://aghl.ru/forum/viewtopic.php?f=19&t=17
Страница 5 из 9

Автор:  neoRT [ 14 мар 2012, 18:31 ]
Заголовок сообщения:  Re: Galileo - расширенная система голосований за карты

I'm having segmentation faults on mapchange since i've installed this. I've found a topic on alliedmodders which says that it's due the way the galileo.cfg it's loaded. I've tried to change the code like there and i get bad compile.
Can someone change the way the galileo.cfg it's loaded like here http://forums.alliedmods.net/showpost.p ... ostcount=9 ?

Автор:  KORD_12.7 [ 15 мар 2012, 05:52 ]
Заголовок сообщения:  Re: Galileo - расширенная система голосований за карты

Try this

Вложения:
Скачать плагин или Скачать исходник [galileo.sma - 77.95 КБ]
Скачиваний: 481

Автор:  neoRT [ 15 мар 2012, 15:15 ]
Заголовок сообщения:  Re: Galileo - расширенная система голосований за карты

Thank you very much, it compiles correctly now. There a little, little problem: i've reinstalled my local compiler and I can't find the include "pragma semicolon 1". I don't really know the purpose of that include but i think i should have compiled the plugin having that too.
Please can you attach it?

Автор:  Lev [ 15 мар 2012, 15:41 ]
Заголовок сообщения:  Re: Galileo - расширенная система голосований за карты

Код:
#pragma semicolon 1
It is not an #include directive.
It is a preprocessor directive that forces compiler to check for semicolon after each code instruction.

Автор:  neoRT [ 15 мар 2012, 15:46 ]
Заголовок сообщения:  Re: Galileo - расширенная система голосований за карты

Sorry, i didn't knew that :D . Thanks Lev for explaining.
I hope my segmentation faults on mapchange will stop with the modification made to the way the galileo.cfg loads.

Автор:  neoRT [ 22 мар 2012, 21:29 ]
Заголовок сообщения:  Re: Galileo - расширенная система голосований за карты

I've found a bug when using the nominate command.
When I write in chat for example: nominate farm - a menu will appear with mapnames that contain "farm" word, like this
1 farmland
2 farmland2
3 farmland3

When I try to choose one of these options, nothing happens, and in amxx logs folder it says:

Код:
L 03/22/2012 - 16:52:37: Start of error session.
L 03/22/2012 - 16:52:37: Info (map "closefire") (file "addons/amxmodx/logs/error_20120322.log")
L 03/22/2012 - 16:52:37: Invalid cellvector handle provided (5253:-112:301)
L 03/22/2012 - 16:52:37: [AMXX] Run time error 10 (plugin "galileo.amxx") (native "ArrayGetString") - debug not enabled!
L 03/22/2012 - 16:52:37: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 03/22/2012 - 16:56:25: Start of error session.
L 03/22/2012 - 16:56:25: Info (map "1337_street") (file "addons/amxmodx/logs/error_20120322.log")
L 03/22/2012 - 16:56:25: Invalid cellvector handle provided (5247:-112:301)
L 03/22/2012 - 16:56:25: [AMXX] Run time error 10 (plugin "galileo.amxx") (native "ArrayGetString") - debug not enabled!
L 03/22/2012 - 16:56:25: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 03/22/2012 - 16:57:11: Invalid cellvector handle provided (5247:-112:301)
L 03/22/2012 - 16:57:11: [AMXX] Run time error 10 (plugin "galileo.amxx") (native "ArrayGetString") - debug not enabled!
L 03/22/2012 - 16:57:11: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 03/22/2012 - 16:57:42: Invalid cellvector handle provided (5247:-96:301)
L 03/22/2012 - 16:57:42: [AMXX] Run time error 10 (plugin "galileo.amxx") (native "ArrayGetString") - debug not enabled!
L 03/22/2012 - 16:57:42: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 03/22/2012 - 16:58:12: Invalid cellvector handle provided (5247:-112:301)
L 03/22/2012 - 16:58:12: [AMXX] Run time error 10 (plugin "galileo.amxx") (native "ArrayGetString") - debug not enabled!
L 03/22/2012 - 16:58:12: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 03/22/2012 - 16:58:23: Invalid cellvector handle provided (5247:-112:301)
L 03/22/2012 - 16:58:23: [AMXX] Run time error 10 (plugin "galileo.amxx") (native "ArrayGetString") - debug not enabled!
L 03/22/2012 - 16:58:23: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 03/22/2012 - 17:00:11: Invalid cellvector handle provided (5247:-112:301)
L 03/22/2012 - 17:00:11: [AMXX] Run time error 10 (plugin "galileo.amxx") (native "ArrayGetString") - debug not enabled!


If I add debug in plugins.ini, there are no logs anymore and the menu works fine.
Strange, no?
Can it be fixed or should I use the plugin in debug mode?

Автор:  Lev [ 22 мар 2012, 23:35 ]
Заголовок сообщения:  Re: Galileo - расширенная система голосований за карты

neoRT писал(а):
If I add debug in plugins.ini, there are no logs anymore and the menu works fine.
Oo

Автор:  neoRT [ 23 мар 2012, 00:57 ]
Заголовок сообщения:  Re: Galileo - расширенная система голосований за карты

I know Lev, it doesn't sound logic but this is how it's happening.

Автор:  neoRT [ 24 мар 2012, 05:15 ]
Заголовок сообщения:  Re: Galileo - расширенная система голосований за карты

I've found now some debug logs

Код:
L 03/23/2012 - 23:37:35: Start of error session.
L 03/23/2012 - 23:37:35: Info (map "crossfire") (file "addons/amxmodx/logs/error_20120323.log")
L 03/23/2012 - 23:37:35: Invalid cellvector handle provided (5185:-69:301)
L 03/23/2012 - 23:37:35: [AMXX] Displaying debug trace (plugin "galileo.amxx")
L 03/23/2012 - 23:37:35: [AMXX] Run time error 10: native error (native "ArrayGetString")
L 03/23/2012 - 23:37:35: [AMXX]    [0] texty5PLju.sma::map_nominate (line 1251)
L 03/23/2012 - 23:37:35: [AMXX]    [1] texty5PLju.sma::nomination_handleMatchChoice (line 1144)

But with debug enabled, the menu works.

Автор:  Extremist [ 30 мар 2012, 00:43 ]
Заголовок сообщения:  Re: Galileo - расширенная система голосований за карты

вопрос- у меня по математике была 3ка
поэтому
как правильно установить параметр
Код:
gal_banrecent 
и
Код:
gal_vote_mapchoices

чтобы каждый раз в голосовании участвовали лиш новые карты. Маплист допустим из 15 карт. :%)
Чтобы карты в меню не повторялись.
Пробовал выставлять разные значения, что-то плохо получилось.

Страница 5 из 9 Часовой пояс: UTC + 5 часов [ Летнее время ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/