Jump to content

Getting Into Modding GRAW.....


Recommended Posts

Now that our clan is adopting GRAW as a game I am interested in modding it again. I've read the most basic tutorials and just now exported my first test map. If I need any help testing it in game I'll post here, but right now I just wanted to ask if there are any special things I need to know or do before scripting missions for GRAW.

Link to comment
Share on other sites

My Domination mode level showed up fine and I ran through it without any problems. Now I'm trying to do the most basic of scripting, following this tutorial by GRIN:

How to make ogr coop levels for GRAW

I've followed the tutorial exactly (as far as I can tell) and I get this crash when loading it up in OGR Co-op mode:



Crash in application version: grpcrc1.35

data\lib\managers\worldmanager.dsf(-1): cant find member: _elements_vector in type <void>

SCRIPT STACK

data\lib\managers\worldmanager.dsf(0)
data\lib\managers\worldmanager.dsf(0)
data\lib\managers\worldmanager.dsf(0)
data\lib\managers\worldmanager.dsf(0)
data\lib\setups\setup.dsf(0)
data\levels\custom_levels\tos test\tos test.dsf(27)

I'm sure the problem will be obvious to the more experienced GRAW modders. Here is my script:

<?xml version="1.0" encoding="ISO-8859-1"?>
<World>
<!-- World -->
<load_scene file="/data/levels/custom_levels/TOS Test/TOS Test.diesel" use_lightset="true" materials="/data/levels/custom_levels/TOS Test/materials.xml">
<object name="world_bb" hidden="true"/>
<object name="room01" hidden="true"/>
<object name="Plane01" hidden="true"/>
<global_ambient color="60 60 40"/>
</load_scene>
<load_scene file="/data/objects/lens/normal_lens.diesel">
<object name="normal_lens" hidden="true"/>
</load_scene>
<load_scene file="/data/objects/lens/zoom_lens.diesel">
<object name="zoom_lens" hidden="true"/>
</load_scene>
<script_data>
<xi:include href="/data/levels/common/common.xml#xpointer(/common/*)"/>
<area_group name="lolleractivate2" area_name="lolleractivate2" group="mp_players" interval="0.3" condition="1"/>
<user name="user" type="once">
<trigger type="UnitInArea" area="lolleractivate2"/>
<event name="activate_lollers"/>
</user>
<event name="start_game">
<element type="ActivateGroup" group_id="lollerskater" start_time="2"/>
<element type="UnitInArea" area="lolleractivate2" state="activate" start_time="3"/>
</event>
<event name=”activate_lollers”>
<element type="ActivateGroup" group_id="lollerskater2" start_time="2"/>
<element type="UnitInArea" area="lolleractivate2" state="deactivate" start_time="3"/>
</event>
-->
<player name="player1" mod_name="OnFoot">
<spawn unit_name="ghost_player" object="spawn_player1"/>
</player>
<player name="player2" mod_name="OnFoot">
<spawn unit_name="ghost_player" object="spawn_player2"/>
</player>
<player name="player3" mod_name="OnFoot">
<spawn unit_name="ghost_player" object="spawn_player3"/>
</player>
<player name="player4" mod_name="OnFoot">
<spawn unit_name="ghost_player" object="spawn_player4"/>
</player>
<gametype_info name="enemies_to_kill" value="65"/>
<spawn_manager>
<!--<xi:include href="/data/levels/merge_xml/common_spawn.xml#xpointer(/to_include/spawn/*)"/> -->
</spawn_manager>
</script_data>
</World>
Edited by RileyFletcher_01
Link to comment
Share on other sites

very sorry i'm not of much help with your scripting problem, as i'm not able to try it out myself as i'm not on my desktop but this: <area_group name="lolleractivate2" area_name="lolleractivate2" group="mp_players" interval="0.3" condition="1"/>

did you name the variables here?

review the scripts again compared to the GRIN one it could be a case of missing parentheses,or grammar or something really ridiculous that you can easily miss, python does this to me all the time in college.

walk through it step by step, read it letter by letter just to be sure everything is OK guide-wise

I'm available to test and help out with if need be ;)

Edited by Zeealex
Link to comment
Share on other sites

  • 1 month later...

just flew over it and seen 2 mistakes.

1st:

compare the quotation marks from start_game and activate_lollers

start_game is ok but activate_lollers has wrong quotation marks.

2nd:

the --> after the activate_lollers event needs to go.

and just by the way, you should name your user, if the script gets bigger it will help to navigate.

also you should use some good text editor like notepad++ you would see the 2 mistakes in there strait away.

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...