Jump to content
Korean Random
Mr A

Среда разработчика: Работа в среде / Development environment: Working in it

Recommended Posts

как оказалось, нужно батник запустить в коммандной строке windows, а не cygwin

Share this post


Link to post

Short link
Share on other sites

Hello

I hope the internet can translate my english to russian succesfully!

I am attempting to build XVM and have run into a number of issues.

It looks like the build process is now different to what it once was.

Can you please advise how to resolve these issues?

  1. Build AS2 step: Using the standard as2proj files, I receive message that "igen" fails. I have added the path "C:\Program Files (x86)\FlashDevelop\Tools\IGen" to my environment variables on windows and now it appears that this step succeeds.
  2. Build AS2 step: When xvm.as2proj is open, I press F8 and the file xvm.swf is placed into the "<base>/~output/~ver/gui/scaleform" directory. Do I need to open every other as2proj file and build individually? (I have noiw resolved this by right clicking the top level of the project treeview (xvm(AS2)) and selecting 'build all projects')
  3. Build AS3 step: There is no xvm.as3proj to open. I have attempted instead to open _xvm_main.as3 and 'build all projects', but receive many errors:

    'Errors inside'

    Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe "C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\_xvm_main.as3proj" -ipc c4e193d0-b518-4e27-b9bc-041f855cef73 -version "4.6.0; 3.1" -compiler "C:\Users\TheHermit\AppData\Local\FlashDevelop\Apps\flexsdk\4.6.0" -library "C:\Program Files (x86)\FlashDevelop\Library"
    Building _xvm_main
    mxmlc -load-config+=obj\_xvm_mainConfig.xml -debug=true -incremental=true -swf-version=13 -o obj\_xvm_main635689636709981812
    Starting java as: java.exe -Xmx384m -Dsun.io.useCanonCaches=false -Duser.language=en -Duser.region=US -Djava.util.Arrays.useLegacyMergeSort=true -Dapplication.home="C:\Users\TheHermit\AppData\Local\FlashDevelop\Apps\flexsdk\4.6.0" -jar "C:\Users\TheHermit\AppData\Local\FlashDevelop\Apps\flexsdk\4.6.0\lib\fcsh.jar"
    INITIALIZING: Adobe Flex Compiler SHell (fcsh)
    Starting new compile.
    Loading configuration file C:\Users\TheHermit\AppData\Local\FlashDevelop\Apps\flexsdk\4.6.0\frameworks\flex-config.xml
    Loading configuration file C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\obj\_xvm_mainConfig.xml
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\types\NetworkServicesSettings.as(11): col: 58 Error: The definition of base class DAAPIDataClass was not found.
    public dynamic class NetworkServicesSettings extends DAAPIDataClass
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\Defines.as(27): col: 61 Error: Access of undefined property XfwConst.
    public static const XVM_RESOURCES_DIR_NAME:String = XfwConst.XFW_RESOURCES_DIR_NAME + "xvm/";
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\Defines.as(27): col: 61 Error: Access of undefined property XfwConst.
    public static const XVM_RESOURCES_DIR_NAME:String = XfwConst.XFW_RESOURCES_DIR_NAME + "xvm/";
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\Defines.as(7): col: 19 Error: Definition com.xfw:XfwConst could not be found.
    import com.xfw.XfwConst;
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\Locale.as(18): col: 22 Error: Access of undefined property JSONx.
    s_lang = JSONx.parse(lang_str).locale;
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\Locale.as(20): col: 17 Error: Access of undefined property Logger.
    Logger.add("Locale: \"locale\" section is not found in the file");
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\Locale.as(29): col: 17 Error: Access of undefined property Logger.
    Logger.err(new Error("locale data is not loaded"));
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\Locale.as(64): col: 29 Error: Access of undefined property XfwUtils.
    macro = XfwUtils.substitute(macro, stringParts);
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\Locale.as(9): col: 19 Error: Definition com.xfw could not be found.
    import com.xfw.*;
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\types\veh\VehicleData.as(11): col: 38 Error: The definition of base class DAAPIDataClass was not found.
    public class VehicleData extends DAAPIDataClass
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\controls\PrefMultiSelectionDropDown.as(7): col: 53 Error: The definition of base class MultiSelectionDropDown was not found.
    public class PrefMultiSelectionDropDown extends MultiSelectionDropDown
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\infrastructure\XvmModBase.as(13): col: 37 Error: The definition of base class XfwModBase was not found.
    public class XvmModBase extends XfwModBase
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\infrastructure\XvmModBase.as(15): col: 37 Error: Method marked override must override another method.
    override protected function processView(view:IView, populated:Boolean):IXfwView
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\controls\NationMultiSelectionDropDown.as(8): col: 55 Error: The definition of base class MultiSelectionDropDown was not found.
    public class NationMultiSelectionDropDown extends MultiSelectionDropDown
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\controls\ClassMultiSelectionDropDown.as(7): col: 54 Error: The definition of base class MultiSelectionDropDown was not found.
    public class ClassMultiSelectionDropDown extends MultiSelectionDropDown
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\controls\LevelMultiSelectionDropDown.as(7): col: 54 Error: The definition of base class MultiSelectionDropDown was not found.
    public class LevelMultiSelectionDropDown extends MultiSelectionDropDown
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\infrastructure\IXvmView.as(10): col: 39 Error: Interface IXfwView was not found.
    public interface IXvmView extends IXfwView
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\types\dossier\VehicleDossierCut.as(9): col: 44 Error: The definition of base class DAAPIDataClass was not found.
    public class VehicleDossierCut extends DAAPIDataClass
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\types\dossier\DossierBase.as(10): col: 38 Error: The definition of base class DAAPIDataClass was not found.
    public class DossierBase extends DAAPIDataClass
    ^
    C:\Users\TheHermit\Documents\programming\xvm\xvm\src\xvm\xvm_main\com\xvm\types\cfg\CConfig.as(7): col: 34 Error: Definition net.wg.data.daapi.base:DAAPIDataClass could not be found.
    import net.wg.data.daapi.base.DAAPIDataClass;
    ^
    (fcsh)Running Post-Build Command Line...
    cmd: bash .build-swc-xvm_main.sh
    Loading configuration file C:\Users\TheHermit\AppData\Local\FlashDevelop\Apps\flexsdk\4.6.0\frameworks\flex-config.xml
    Adobe Compc (Flex Component Compiler)
    Version 4.6.0 build 23201
    Copyright (c) 2004-2011 Adobe Systems, Inc. All rights reserved.
    
    command line: Error: unable to open '../xfw/~output/swc/wg.swc'
    
    Use 'compc -help' for information about using the command line.
    Build halted with errors.
    Done(1)

 

 

Kotyarko_O, on Jan 18 2015 - 08:12, said:
With the framework of these scripts are no more. The theme will be updated?
MR A said:
All in good time :)

I will continue trying to get my build working, and may consider creating an english language update if I can make it work! 

 

I hope you can help me. Thank you

Share this post


Link to post

Short link
Share on other sites

 

 

Build AS3 step: There is no xvm.as3proj to open. I have attempted instead to open _xvm_main.as3 and 'build all projects', but receive many errors:

 

 

 

Как собрать src/xvm/ ? Там нету wg.as3proj. _xvm_main не собирается, много чего ему не хватает: http://snag.gy/1SSUN.jpg

 

 

Как я понял, этот файл в другом месте: \src\xfw\src\actionscript

После его сборки ошибки пропали

post-32437-0-62305000-1433425950_thumb.jpg

Share this post


Link to post

Short link
Share on other sites

 

 

 

Всё собралось.

При сборке были следующие проблемы:

     1 В архиве с FlexSDK по ссылке не было папки с нужной версией 11.1, из-за чего при компиляции as3 терминал.

         выдавал соответствующую ошибку.

     2 После добавления этой папки появилась другая ошибка: Cannot read file... negative seek index, или что-то вроде этого.

 

     > Оказалось, в распакованную директорию FlexSDK /frameworks/libs/player нужно скопировать все недостающие папки.

        Взять их можно из другого FlexSDK, встроенного в FlashDevelop. Если встроенного нет - ставим через меню

        Tools -> Install software (откроется менеджер пакетов, где нужно выбрать необходимое):

             Flex SDK (OLD)

             AIR + ASC 2.0

        и нажать Install 2 items.

 

      > Чтобы не страдать фигнёй с копированием, можно сразу указать путь до встроенного FlexSDK

          в переменной FLEX_HOME. Я так не делал, как будет работать - не знаю :)

 

        Почему нужных папок не было в архиве - хз, может это я что-то сделал не так, но мало ли...

        При этом папки 11.0 и 11.4 - были.

 

В качестве терминала ConEmu норм, а вот шелл лучше выбрать от CygWin - с остальными у меня были какие-то глюки 

(вылеты терминала или утилит, самопроизвольное неявное переключение директории на системную или отказ

запуска скрипта хоть из директории, хоть по указанному пути)

Да и на линуксовый шелл этот больше похож своим поведением.

Вот так всё и собралось.

Edited by ForWinder

Share this post


Link to post

Short link
Share on other sites

 

 

В архиве с FlexSDK по ссылке не было папки с нужной версией 11.1, из-за чего при компиляции as3 терминал.          выдавал соответствующую ошибку.

Да, есть такое, по этому я написал что нужно выкачать playerglobal отдельно

 

 

Дальше качаем https://github.com/n...hive/master.zip и распаковываем содержимое папки playerglobal-master  в %FLEX_HOME%/frameworks/libs/player/

Если других проблем не возникло это хорошо.

 

ЗЫ Кстати скрипты последних версий сами выкачивают playerglobal.swc нужной версии при наличии wget

Share this post


Link to post

Short link
Share on other sites

Ребята, как открыть файл результата боя с другого клиента?
В теме ночных сборок мелькал метод xvm_test.runTest, но у меня не хватает ума где и как его звать.
Файл .dat в \utils\test поместил...

Share this post


Link to post

Short link
Share on other sites

Ребята, как открыть файл результата боя с другого клиента?

В теме ночных сборок мелькал метод xvm_test.runTest, но у меня не хватает ума где и как его звать.

Файл .dat в \utils\test поместил...

xvm/src/xpm/xvm_main/test.py

в этом файле сотрите # перед runTest(...) в onHangarInit()

и поменяйте цифры в названии .dat-файла на свои

Edited by ShadowHunterRUS
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

 

 

xvm/src/xpm/xvm_main/test.py
Спасибо, получилось.

 

и .dat надо в корень игры кинуть
Может я через Ж сделал, но положил в штатную папку и включил флаг "Только чтение" - открылось.

Share this post


Link to post

Short link
Share on other sites

Еще 

что то не так делаю?Вот копия "Кингвина" Adminis@Admin ~

$ cd "YOUR_PATH"

-bash: cd: YOUR_PATH: No such file or directory

Adminis@Admin ~

$

Share this post


Link to post

Short link
Share on other sites

@DJ_DJoni, ну как можно допускать такие ошибки?

YOUR_PATH - в данном контексте означает, что в этом месте нужно прописать путь до каталога с кодом.

 

P.S. этот гайд давно неактуален.

Edited by ShadowHunterRUS

Share this post


Link to post

Short link
Share on other sites

 

 

этот гайд давно неактуален

 

Может быть есть желающие актуализировать информацию? Это было бы очень полезно.

  • Upvote 1

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...