Results 1 to 20 of 20

Thread: WarscapeFrame and the Battle Editor

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default WarscapeFrame and the Battle Editor

    Warscape Frame appears to be the battle editor for ETW. [See the Read Me reprinted here]. In poking through the UI.pack, I noticed there were files entitled warscapetwin. If you open the files in notepad you'll see they seem to be code defining the window options for WarscapeFrame.

    Is that what this is? If so, is there anything that can be done with it as far as developing more modding tools?

    Spoiler Alert, click show to read: 
    <WARSCAPE_FRAME name='WarscapeFrame' width='1.000000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' input_style='skin.no_border_style' arranger='skin.anchor_flag_arrange' >


    <STYLE name="texture_preview_style"
    padding="aabb(vector(2,2),vector(2,2))"
    margin="aabb(vector(2,2),vector(2,2))"
    background="skin.paper"
    vertical_align="EPF_CENTRE_Y"
    horizontal_align="EPF_LEFT">

    <STYLE name="texture_preview_line_style" padding="aabb(vector(2,2),vector(2,2))" margin="aabb(vector(2,2),vector(2,2))" background="null" vertical_align="EPF_CENTRE_Y" horizontal_align="EPF_LEFT" line_spacing="64"/>
    </STYLE>

    <STYLE name ="table_style" padding="aabb(vector(0,0),vector(0,0))" margin="aabb(vector(0,0),vector(0,0))" background="null" vertical_align="EPF_CENTRE_Y" horizontal_align="EPF_LEFT" line_spacing="64"/>

    <STYLE name ="border_style" padding="aabb(vector(2,2),vector(2,2))" margin="aabb(vector(0,0),vector(0,0))" background="skin.client_edge" />



    g_inset_border_style= ca_new STYLE(AABB_2i(0,0,0,0),AABB_2i(2,2,2,2),client_edge,get_default_font(),TWIN::carret,TWIN::select_rect,NULL,TWIN::textcol,TWIN::textselcol,TWIN::textdisabledcol,20,AXIS_X);

    <!--
    The following are valid commands
    CMD_SAVE_SETTINGS
    CMD_CLEAR_PARTICLE_SYSTEMS
    CMD_LOAD_PARTICLE_SYSTEMS
    CMD_SAVE_PARTICLE_SYSTEMS
    CMD_COPY_TEXT_SELECTION
    CMD_EXIT
    CMD_SHADOW_TOGGLE
    CMD_MOVE_MODE
    CMD_LOAD_ENVIRONMENT_SETTINGS
    CMD_SAVE_ENVIRONMENT_SETTINGS
    CMD_INSERT_NEW_NODE
    CMD_DELETE_NODE
    CMD_COPY_NODE
    CMD_CUT_NODE
    CMD_PASTE_NODE
    CMD_RENAME_NODE
    CMD_LOAD_TEXTURE
    CMD_INSERT_NEW_TEXTURE
    CMD_DUMP_NODE_TO_CONSOLE
    CMD_SAVE_XML
    CMD_LOAD_XML
    CMD_SAVE_KEYFRAMES
    CMD_LOAD_KEYFRAMES
    CMD_LOAD_DIALOG
    CMD_SAVE_WINDOWS
    CMD_SAVE_WINDOW_SKIN
    CMD_TAKE_SCREEN_SHOT_DIALOG
    -->
    <VECTOR_LIST name='file_list' >
    <LIST_ELEM name='Load Settings' attrib='0' value='CMD_LOAD_SETTINGS' image_index='0' offset='0' />
    <LIST_ELEM name='Save Settings' attrib='0' value='CMD_SAVE_SETTINGS' image_index='0' offset='0' />
    <LIST_ELEM name='Clear Particle Systems' attrib='0' value='50502' image_index='0' offset='0' />
    <LIST_ELEM name='Load Particle Systems' attrib='0' value='CMD_LOAD_PARTICLE_SYSTEMS' image_index='0' offset='0' />
    <LIST_ELEM name='Save Particle Systems' attrib='0' value='CMD_SAVE_PARTICLE_SYSTEMS' image_index='0' offset='0' />
    <LIST_ELEM name='Save KeyFrames' attrib='0' value='CMD_SAVE_KEYFRAMES' image_index='0' offset='0' />
    <LIST_ELEM name='Load KeyFrames' attrib='0' value='CMD_LOAD_KEYFRAMES' image_index='0' offset='0' />
    <LIST_ELEM name='Load TWIN dialog' attrib='0' value='CMD_LOAD_DIALOG' image_index='0' offset='0' />
    <LIST_ELEM name='Save Windows' attrib='0' value='CMD_SAVE_WINDOWS' image_index='0' offset='0' />
    <LIST_ELEM name='Load Terrain' attrib='0' value='CMD_LOAD_TERRAIN' image_index='0' offset='0' />
    <LIST_ELEM name='Save Terrain' attrib='0' value='CMD_SAVE_TERRAIN' image_index='0' offset='0' />
    <LIST_ELEM name='Load Forest' attrib='0' value='CMD_LOAD_FOREST' image_index='0' offset='0' />
    <LIST_ELEM name='Save Forest' attrib='0' value='CMD_SAVE_FOREST' image_index='0' offset='0' />
    <LIST_ELEM name='Copy text selection' attrib='64' value='CMD_COPY_NODE' image_index='0' offset='0' />
    <LIST_ELEM name='Exit' attrib='0' value='CMD_EXIT' image_index='0' offset='0' />
    </VECTOR_LIST>
    <VECTOR_LIST name='empty_popup_list' >
    <LIST_ELEM attrib='192' name='This node has no operations.' value='0' image_index='0' offset='0' />
    </VECTOR_LIST>
    <VECTOR_LIST name='options_list' >
    <LIST_ELEM name='Shadow toggle' attrib='0' value='CMD_SHADOW_TOGGLE' image_index='0' offset='0' />
    <LIST_ELEM name='Move Mode' attrib='0' value='CMD_MOVE_MODE' image_index='0' offset='0' />
    </VECTOR_LIST>
    <VECTOR_LIST name='environment_list' >
    <LIST_ELEM name='Load Environment Settings' attrib='0' value='CMD_LOAD_ENVIRONMENT_SETTINGS' image_index='0' offset='0' />
    <LIST_ELEM name='Save Environment Settings' attrib='0' value='CMD_SAVE_ENVIRONMENT_SETTINGS' image_index='0' offset='0' />
    <LIST_ELEM name='Take screenshot' attrib='0' value='CMD_TAKE_SCREEN_SHOT_DIALOG' image_index='0' offset='0' />
    </VECTOR_LIST>
    <VECTOR_LIST name='full_popup_list' >
    <LIST_ELEM name='Insert New' attrib='0' value='CMD_INSERT_NEW_NODE' image_index='0' offset='0' />
    <LIST_ELEM name='Delete' attrib='0' value='CMD_DELETE_SCENE_NODE' image_index='0' offset='0' />
    <LIST_ELEM name='Copy' attrib='0' value='CMD_COPY_NODE' image_index='0' offset='0' />
    <LIST_ELEM name='Cut' attrib='0' value='CMD_CUT_NODE' image_index='0' offset='0' />
    <LIST_ELEM name='Paste' attrib='0' value='CMD_PASTE_NODE' image_index='0' offset='0' />
    <LIST_ELEM name='Rename' attrib='0' value='CMD_RENAME_NODE' image_index='0' offset='0' />
    <LIST_ELEM name='Dump item to console' attrib='CMD_DUMP_NODE_TO_CONSOLE' value='50519' image_index='0' offset='0' />
    <LIST_ELEM name='Load XML' attrib='0' value='CMD_LOAD_XML' image_index='0' offset='0' />
    <LIST_ELEM name='Save XML' attrib='0' value='CMD_SAVE_XML' image_index='0' offset='0' />
    </VECTOR_LIST>

    <VECTOR_LIST name='menu_list' >
    <LIST_ELEM name='File' attrib='0' value='0' image_index='0' offset='0' child_list='file_list' />
    <LIST_ELEM name='Environment' attrib='0' value='0' image_index='0' offset='0' child_list='environment_list' />
    <LIST_ELEM name='Options' attrib='0' value='0' image_index='0' offset='0' child_list='options_list' />
    </VECTOR_LIST>
    <TABLE name='ctrl_main_layout_table' width='1.000000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' input_style='table_style' arranger='skin.anchor_flag_arrange' >
    <ROW width='1.000000*' height='25.000000px' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' input_style='table_style' arranger='skin.anchor_flag_arrange' resize_enabled='true' >
    <CELL width='1.000000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' input_style='table_style' arranger='skin.anchor_flag_arrange' resize_enabled='true' >
    <SIMPLE_LABEL name='ctrl_fps_display' margin='aabb(vector(2,2),vector(2,2))' width='80.000000px' height='25.000000px' valign='EPF_TOP' halign='EPF_RIGHT' text='fps: 63' />
    <MENU name='ctrl_main_menu' margin='aabb(vector(0,0),vector(0,0))' width='1.000000*' height='1.000000*' valign='EPF_TOP' halign='EPF_LEFT' input_style='skin.MENU::g_default_style' input_list='menu_list' popup_behaviour='false' input_sub_menu_style='skin.MENU::g_default_sub_menu_style' />
    </CELL>
    </ROW>
    <ROW name='tool_bar_row' width='1.000000*' height='150.000000px' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' input_style='table_style' arranger='skin.anchor_flag_arrange' resize_enabled='true' >
    <CELL width='320px' input_style='table_style'>
    <PROPERTY_PANEL name='ctrl_settings_panel' pbag='scene'/>
    </CELL>
    <CELL width='1.000000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' input_style='table_style' arranger='skin.anchor_flag_arrange' resize_enabled='true' >
    <TAB_BOX name='ctrl_module_tabs' width='1.000000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' >
    </TAB_BOX>
    </CELL>
    </ROW>
    <ROW name='render_row' width='1.000000*' height='0.800000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' input_style='table_style' arranger='skin.anchor_flag_arrange' resize_enabled='true' >
    <CELL name='render_cell' width='0.800000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' arranger='skin.anchor_flag_arrange' resize_enabled='true' input_style='skin.inset_border_style'>
    <WARSCAPE_RENDER_WIDGET name='ctrl_main_render_widget' margin='aabb(vector(0,0),vector(0,0))' width='100%' height='100%' valign='EPF_TOP' halign='EPF_LEFT' />
    </CELL>
    <CELL name='property_cell' width='1.000000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' input_style='table_style' arranger='skin.anchor_flag_arrange' resize_enabled='true' >
    <TABLE width='1.000000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' input_style='table_style' arranger='skin.anchor_flag_arrange' >
    <ROW width='1.000000*' height='0.500000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' input_style='table_style' arranger='skin.anchor_flag_arrange' resize_enabled='true' >
    <CELL width='1.000000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' input_style='skin.inset_border_style' arranger='skin.anchor_flag_arrange' resize_enabled='true' >
    <TAB_BOX name='ctrl_inspector_tab_box'>
    <SCROLL_CONTAINER name='Tools' width='1.000000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' auto_scrollbars='true' >
    <TREE_VIEW name='ctrl_tools_view' margin='aabb(vector(0,0),vector(0,0))' width='100%' height='100%' valign='EPF_TOP' halign='EPF_LEFT' input_horizontal_bar='skin.select_rect' input_vertical_bar='skin.select_rect' pixel_scroll='true' input_list='menu_list'/>
    </SCROLL_CONTAINER>
    <SCROLL_CONTAINER name='Textures' width='1.000000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' auto_scrollbars='true' >
    <TREE_VIEW name='ctrl_texture_view' margin='aabb(vector(0,0),vector(0,0))' input_style='texture_preview_style' width='100%' height='100%' valign='EPF_TOP' halign='EPF_LEFT' input_horizontal_bar='skin.select_rect' input_vertical_bar='skin.select_rect' pixel_scroll='true' list=''/>
    </SCROLL_CONTAINER>
    <SCROLL_CONTAINER name='Scene' width='1.000000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' auto_scrollbars='true' >
    <TREE_VIEW name='ctrl_tree_view' margin='aabb(vector(0,0),vector(0,0))' width='100%' height='100%' valign='EPF_TOP' halign='EPF_LEFT' input_horizontal_bar='skin.select_rect' input_vertical_bar='skin.select_rect' pixel_scroll='true' input_list='menu_list'/>
    </SCROLL_CONTAINER>
    </TAB_BOX>
    </CELL>
    </ROW>
    <ROW width='1.000000*' height='100%' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' input_style='table_style' arranger='skin.anchor_flag_arrange' resize_enabled='true' >
    <CELL width='1.000000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' input_style='table_style' arranger='skin.anchor_flag_arrange' resize_enabled='true' >
    <SCROLL_CONTAINER width='1.000000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' auto_scrollbars='true' >

    <PROPERTY_PANEL name='ctrl_property_panel' width='1.000000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' style='skin.brushed_metal_style' />

    </SCROLL_CONTAINER>
    </CELL>
    </ROW>
    </TABLE>
    </CELL>
    </ROW>
    <ROW name='animation_row' width='1.000000*' height='100%' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' arranger='skin.anchor_flag_arrange' input_style='table_style' resize_enabled='true' >
    <CELL width='1.000000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' input_style='skin.inset_border_style' arranger='skin.anchor_flag_arrange' resize_enabled='true' >
    <TAB_BOX name='ctrl_bottom_panel_tabs'>
    <ANIMATION_PANEL name='Animation Editor' width='1.000000*' height='1.000000*' margin='aabb(vector(0,0),vector(0,0))' valign='EPF_TOP' halign='EPF_LEFT' input_style='table_style' arranger='skin.anchor_flag_arrange' >
    </ANIMATION_PANEL>
    </TAB_BOX>
    </CELL>
    </ROW>
    </TABLE>

    </WARSCAPE_FRAME>

  2. #2

    Default Re: WarscapeFrame and the Battle Editor

    I should add that the file for the skin is included as well.

  3. #3
    Hengest's Avatar It's a joke
    Join Date
    Oct 2005
    Location
    Great Britain
    Posts
    7,523

    Default Re: WarscapeFrame and the Battle Editor

    This is interesting mate, can't beleive no one picked you up on this you could have found the start of a battlefield editor or at the least some of the files connected to it

  4. #4

    Default Re: WarscapeFrame and the Battle Editor

    From what I understand, warscapeframe may be to do with the campaign map. Just a wild guess though.

  5. #5

    Default Re: WarscapeFrame and the Battle Editor

    Quote Originally Posted by Flobulon View Post
    From what I understand, warscapeframe may be to do with the campaign map. Just a wild guess though.
    Either way, it could be useful. It looks like the code is something along the lines of C or C++ (I know very little about coding). I started to try to compile it, but it's over my head atm.

  6. #6
    alpaca's Avatar Harbinger of saliva
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    4,811

    Default Re: WarscapeFrame and the Battle Editor

    The code is xml, it seems to define a window layout. Unless you have a way of telling the game to start the battle editor (if that's what it is) there might not be a lot we can do with it.

    No thing is everything. Every thing is nothing.

  7. #7

    Default Re: WarscapeFrame and the Battle Editor

    Ask the devs? It should be a quick question to answer that could go a long way.

  8. #8

    Default Re: WarscapeFrame and the Battle Editor

    It does exist in the exe. Much reference to Warscape this and that.

  9. #9

    Default Re: WarscapeFrame and the Battle Editor

    Warscape is the name of the game engine, from what I understand. Oh, and disregard what I said earlier about it being to do with the campaign, I didn't really read it properly lol.

  10. #10

    Default Re: WarscapeFrame and the Battle Editor

    Does anyone know what they used in MTW2 and RTW for the Console buttons actual binding? Like is it bound to show_console or something.

  11. #11

    Default Re: WarscapeFrame and the Battle Editor

    I found the battle editor template file in the UI/templates folder in the UI.pack, it's a .LUAC file though, looking through it in textpad, seemed to show several values, including one for making the editor visible and making it invisible, urgo enabling and disabling it, but i'm not sure how to edit it, since it's a compiled .LUA script.

    It's called battleeditor.LUAC
    My named ships in Empire Total War: (that i can remember)

    Fifth Rate, HMS Poseidon.

    Fifth Rate, HMS Dauntless.

    Fifth Rate, HMS Enterprise NCC-1701

    Fifth Rate, HMS Simi.


    ------
    "Ya best start believing in ghost stories Miss Turner. You're IN one!"

  12. #12

    Default Re: WarscapeFrame and the Battle Editor

    Also, in the models.pack there are models for the warscapeframe, including ai hints (where to take cover, choke points etc) and sound emitters. So yeah, it's definitely a battlefield editor.

  13. #13

    Default Re: WarscapeFrame and the Battle Editor

    WarscapeFrame is a seperate .exe, it is not built into the Empire.exe, same situation with the console.
    Senior Designer

    Disclaimer: Any views or opinions expressed here are those of the poster and do not necessarily represent the views or opinions of The Creative Assembly or SEGA.

  14. #14

    Default Re: WarscapeFrame and the Battle Editor

    Quote Originally Posted by Jack Lusted View Post
    WarscapeFrame is a seperate .exe, it is not built into the Empire.exe, same situation with the console.
    Huh, the console is a separate exe? So it's something completely different than the traditional game console (press ~ and type commands)?

  15. #15
    alpaca's Avatar Harbinger of saliva
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    4,811

    Default Re: WarscapeFrame and the Battle Editor

    Quote Originally Posted by Jack Lusted View Post
    WarscapeFrame is a seperate .exe, it is not built into the Empire.exe, same situation with the console.
    So is there any chance that these are released? There's so many things we will have serious problems editing

    The campaign map for example will be a pain to edit.

    No thing is everything. Every thing is nothing.

  16. #16

    Default Re: WarscapeFrame and the Battle Editor

    Quote Originally Posted by Jack Lusted View Post
    WarscapeFrame is a seperate .exe, it is not built into the Empire.exe, same situation with the console.
    Tease
    http://www.twcenter.net/forums/showthread.php?t=260572

    Game Scripter @ Reverie World Studios

  17. #17

    Default Re: WarscapeFrame and the Battle Editor

    darn

  18. #18

    Default Re: WarscapeFrame and the Battle Editor

    Damn you Lusted, for foiling our nefarious plans!
    Ah well, guess we'll have to wait

  19. #19

    Default Re: WarscapeFrame and the Battle Editor

    This must be the editor they referenced in the interview.

  20. #20

    Default Re: WarscapeFrame and the Battle Editor

    My Computer, my computer for mod documentation.
    http://www.twcenter.net/forums/showthread.php?t=260572

    Game Scripter @ Reverie World Studios

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •