Notices

Go Back   FileFront Forums > The Games! > Dawn of War Series > DoW Modding and Editing

Remember Me?

DoW Modding and Editing
More info about a Mod? Wanna Edit or Make a Mod? Looking for Modders/Editors? Right here!

Reply
 
LinkBack Thread Tools Display Modes
Old January 12th, 2009   #1
>.<
 
Tau're's Avatar
 
Join Date: April 5th, 2008
Status: Available
181 posts, 0 likes.
Rep Power: 0
Tau're is a n00b
Default Scar troubles

Can anyone help me, im making a map with its own objectives for dark crusade but i can only make it as a map that u can choose in skirmish because of the campaign changes between winter assault and dark crusade. So u have to choose win condition which annoys me since i have all these objectives and then destroy hq or annihlate or sumthing like that which kinda ruins the whole concept of the map, is there anyway to get rid of these win conditions using the scar in my map?
Tau're is offline   Reply With Quote
Old January 13th, 2009   #2
SCAR is fun!
 
Join Date: January 13th, 2009
Status: Available
13 posts, 0 likes.
Rep Power: 0
dark40k is a n00b
Default Re: Scar troubles

It is feasible but not very easy.

You can check and kill winconditions using SCAR. Basic functions to search for are Rule_Exists and Rule_Remove.
Importing and launching the rule you need can be done with import :
Code:
import("winconditions\\assassinate.scar")
AssassinateInit()
The problem may come from the AIs that will have problem to handle the change. I don't know.

Hope this helps.

Looking for intense missions? Check out these maps for DarkCrusade and Soulstorm.
They can be played single or cooperative:
Multiplayer Assault Map - Debarq 1.0
Multiplayer Assault Map - Fortress 2.0

Multiplayer Assault Map - Battlefield 2.0
dark40k is offline   Reply With Quote
Old January 13th, 2009   #3
ONE MAN ARMY
 
nemitis's Avatar
 
Join Date: September 13th, 2008
Location: The Golden Throne of Terra
Status: Making a mod
178 posts, 0 likes.
Rep Power: 0
nemitis is a n00b
Default Re: Scar troubles

if this is a campaign map (which it kinda sounds like it is from ur post) then y dont u make ur own win condition? one that will go along better with the map. or u can make buildings invincible until a certain point in the game if anihlate and destroy hq is the problem.

"We're paratroopers sergeant; we're supposed to be surrounded."

"Nothing is more exhilarating than to be shot at and missed." -Winston Churchill
nemitis is offline   Reply With Quote
Old January 13th, 2009   #4
>.<
 
Tau're's Avatar
 
Join Date: April 5th, 2008
Status: Available
181 posts, 0 likes.
Rep Power: 0
Tau're is a n00b
Default Re: Scar troubles

ok, it is a campaign map but as u all no that dark crusade doesnt have the same type of campaign as dawn of war where u can choose which campaign u r playing so i had to make it as a skirmish map (where u can choose the map from skirmish map selection) and i have made my own objectives etc, but it is annoying me coz since i made it like a skirmish map it imports the win conditions like a skirmish map so now i have all these custom objectives then annihlate or destroy hq or sumthing like that aswell which doesnt fit in with my map at all, so i just want to know how to scrap those objectives and just keep mine...
Tau're is offline   Reply With Quote
Old January 14th, 2009   #5
>.<
 
Tau're's Avatar
 
Join Date: April 5th, 2008
Status: Available
181 posts, 0 likes.
Rep Power: 0
Tau're is a n00b
Default Re: Scar troubles

sorry for double post but i also like to add that i tried wot dark40k suggested (importing a win condition and telling it to remove the rule b4 it adds it) but it said i was duplicating the rule and came up with scar error!
Tau're is offline   Reply With Quote
Old January 14th, 2009   #6
SCAR is fun!
 
Join Date: January 13th, 2009
Status: Available
13 posts, 0 likes.
Rep Power: 0
dark40k is a n00b
Default Re: Scar troubles

I gave a closer look and it is more complex than I thought. The problem is that the wincondition is initialized after your code starts because the map custom code is runned before the wincondition is loaded.

A workaround is to use the OnGameSetup() function. If this function exists then it is runned before the map starts but after the winconditions are loaded.

The following code removes Annihilate wincondition if it is set and forces Assassinate if it is not set. This is the whole code for the map. OnGameSetup() is not to be called with Scar_AddInit(). Note that there is no need to launch the rule as assassinate.scar already contains the Scar_AddInit() call to initialize the rule.

Look in the console for the print messages.

Code:
function OnGameSetup()
    if Annihilate~=nil then 
        if Scar_InitExists(Annihilate) then
            print("OnGameSetup => killing annihilate wincondition")
            Scar_RemoveInit(Annihilate)
        end
    end

    print("OnGameSetup => forcing assassinate wincondition")
    import("winconditions\\assassinate.scar")
end
This should work better this way.

Looking for intense missions? Check out these maps for DarkCrusade and Soulstorm.
They can be played single or cooperative:
Multiplayer Assault Map - Debarq 1.0
Multiplayer Assault Map - Fortress 2.0

Multiplayer Assault Map - Battlefield 2.0
dark40k is offline   Reply With Quote
Old January 14th, 2009   #7
>.<
 
Tau're's Avatar
 
Join Date: April 5th, 2008
Status: Available
181 posts, 0 likes.
Rep Power: 0
Tau're is a n00b
Default Re: Scar troubles

Omg, Thank You,
Tau're is offline   Reply With Quote
Old January 14th, 2009   #8
>.<
 
Tau're's Avatar
 
Join Date: April 5th, 2008
Status: Available
181 posts, 0 likes.
Rep Power: 0
Tau're is a n00b
Default Re: Scar troubles

OMG, THANK YOU, i can
Tau're is offline   Reply With Quote
Old January 14th, 2009   #9
>.<
 
Tau're's Avatar
 
Join Date: April 5th, 2008
Status: Available
181 posts, 0 likes.
Rep Power: 0
Tau're is a n00b
Default Re: Scar troubles

OMG, THANK YOU, i can finally get on with my map now thank you!, o and i dont no wot happend then with the triple posting, my net jst glitched or sumthing
Tau're is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scar help Tau're DoW Modding and Editing 3 February 1st, 2009 12:57 AM
scar help needed Tau're DoW Modding and Editing 4 October 8th, 2008 11:24 PM
Scar Help iDeekz CoH Modding, Mapping and Editing 20 March 4th, 2008 07:30 AM
animating through scar? DemonCloud DoW Problems, Errors and Help 2 October 6th, 2007 12:32 AM
How you do scar coding? SharpShooter99 CoH Modding, Mapping and Editing 1 August 17th, 2007 11:21 PM


All times are GMT -7.







   
 





This site is part of the Defy Media Gaming network

The best serving of video game culture, since 2001. Whether you're looking for news, reviews, walkthroughs, or the biggest collection of PC gaming files on the planet, Game Front has you covered. We also make no illusions about gaming: it's supposed to be fun. Browse gaming galleries, humor lists, and honest, short-form reporting. Game on!

FileFront Forums - Terms of Service - Top
Theme Selection
Copyright © 2002-2016 Game Front. All rights reserved. Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Forum Theme by Danny King (FileTrekker), Sheepeep & Graeme(rs)
RSS Feed Widget by FeedWind