Jump to content
Korean Random
seriych

[27.09.2014] Автоматическое разделение однофайлового конфига / Automatic splitting the singlefile config to multfile

Recommended Posts

это можно исправить?

 

Изменить пути до иконок в соответствии с дефолтными

battle.xc

iconset.xc

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Предлагаю в шапку темы слегка подробнее написать кому и зачем нужна эта конвертация. А то люди в непонятках могут зайти А ЧТО КАК при том, что необходимости нет.

Share this post


Link to post

Short link
Share on other sites

Нафиг этот юникод, я задолбался кодировки подбирать, чтобы везде нормально было. То  в файл строку коряво пишет, то сам скрипт коряво открывается, то в скрипте надо кракозябрами писать. Обратно в ANSI сделал.

 

слегка подробнее написать кому и зачем нужна эта конвертация. А то люди в непонятках могут зайти А ЧТО КАК при том, что необходимости нет.

Вроде что-то накарябал. Достаточно?

 

 

Кто-то может шапку темы на английский перевести? google идет лесом.

Share this post


Link to post

Short link
Share on other sites

Блин нафиг!!! Зыканско!!! Класс!!! Вот это работа!!! Респект и уважуха!!! А как насчет markers, будишь делать, или не ждать?

Share this post


Link to post

Short link
Share on other sites
А как насчет markers, будишь делать, или не ждать?

Буду, ждать. Долго ждать, наверное :-)

Share this post


Link to post

Short link
Share on other sites

Взялся за маркеры. Успел даже обрадоваться, что заработало. Но если порядок секций отличается от дефолтного, то не работает. А у большинства, кому нужен скрипт, порядок как раз будет перепутан.

Будем дальше мозг ломать

Share this post


Link to post

Short link
Share on other sites

а я сделал проще, взял дефолтный конфиг, и настроил его как мой старый, все прекрасно работает, да еще и в новом формате сам конфиг)

А seriych все равно огромное спасибо за его труды)

Share this post


Link to post

Short link
Share on other sites
а я сделал проще, взял дефолтный конфиг, и настроил его как мой старый
Так и надо, чтобы всё было красиво. Только на счет "проще" - это ты загнул, конечно. Правильнее, лучше, но никак не проще. 5 секунд - это проще, чем минимум полчаса.

В любом случае это инструмент в основном для тех, кто не хочет/не умеет править конфиг ручками.

Share this post


Link to post

Short link
Share on other sites

Кто-то может шапку темы на английский перевести? google идет лесом.

держи

XVM-4.0.0 provides us with new configuration format, that is divided into logical parts, corresponding to their functons. Old format is still supported, but if you want to use new one with your own setup, I suggest you a script, that will divide your old config into parts, that are similar to new format default config.

 

The script itself:

{file}

how to use:

- unzip the script file;

- put the script and the xvm.config file into one folder;

- run the script.

 

Script creates the subfolder, that uses author field (from config) as a name. The folder contains new format config files. If the folder already exists, the numerical index will be added to its name. I reccomend to put the script into res_mods\xvm\configs folder to create new config already in correrct place. If you do so, you'll be able to use script, that automatically replaces configs, avoiding manual editing:

{file}

Put the script in the same folder and drag'n'drop the folder with wanted config on the scpirt. The config from that folder will be substituted into xvm/xvm.xc

 

By the moment, script is not able to devide "markers" section.

 

Illustrated example:

 

Open the folder xvm\configs:

 

Put the script and some config there. I used my old one, for 3.5 version:

 

Run the script, see the new folder created. As my config author is "seriych" and the folder already exists, the created folder is "seriych 1":

 

we may open the folder to see what exactly was created:

 

add config to loading by the second script or manually:

 

launch some replay to check the result:

 

 

If your config doesn't work after transformation - please report and attach the initial config.

 

*I'm sorry for the rough code writting if anyohe gets to read the script itself.

  • Upvote 2

Share this post


Link to post

Short link
Share on other sites

держи

Спасибо, добавил в шапку.

 

 

Встречаем версию 8:

- добавил дробление секции маркеров

Edited by seriych
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Встречаем версию 8:

- добавил дробление секции маркеров

Заливай в addons, там самое место. 

Share this post


Link to post

Short link
Share on other sites
Заливай в addons, там самое место. 

Сейчас, может кто еще пожалуется, что оно не работает.

Только на юникоде не получается сделать.

 

Кстати, может в зип архивы позасовывать и этот скрипт, и скрипты из wn6&eff, чтобы скачивалось нормально, а не через прохождение квеста с view raw file? Или фиг с ним

Share this post


Link to post

Short link
Share on other sites

Сейчас, может кто еще пожалуется, что оно не работает.

Только на юникоде не получается сделать.

 

Кстати, может в зип архивы позасовывать и этот скрипт, и скрипты из wn6&eff, чтобы скачивалось нормально, а не через прохождение квеста с view raw file? Или фиг с ним

Думаю фиг с ним.

Share this post


Link to post

Short link
Share on other sites

Добавил оба скрипта в http://code.google.com/p/wot-xvm/source/browse/#svn%2Ftrunk%2Faddons

обозвал xvm.xvmconfig_to_many.xc.js, ничего лучше в голову не пришло

Да не важно. addons - это как раз хламовник для всякой всячины, так что все ок.

Share this post


Link to post

Short link
Share on other sites

а чего там с кодировкой? Нечитабельно на гуглокоде.

А нефиг на мой говнокод смотреть :-)

На самом деле:

Нафиг этот юникод, я задолбался кодировки подбирать, чтобы везде нормально было. То  в файл строку коряво пишет, то сам скрипт коряво открывается, то в скрипте надо кракозябрами писать. Обратно в ANSI сделал.

 

Батник тоже в ansi, потому что, если в юникоде сделать, то русские файлы тоже не будет правильно копипастить

Edited by seriych

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...