Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Gabin Dayback

#1
SWBF2 Modding / Restricting AI (Capture CP)
March 09, 2018, 06:36:39 AM
So I am having a small problem with a LUA Command for geo1c_con (Geonosis / Conquest / Clone Wars).

I am usually using the following commands to restrict the AI from capturing Command Posts:

    AICanCaptureCP("cp1", ATT, false)
    AICanCaptureCP("cp2", ATT, false)
    AICanCaptureCP("cp3", ATT, false)
    AICanCaptureCP("cp4", ATT, false)
    AICanCaptureCP("cp5", ATT, false)
    AICanCaptureCP("cp6", ATT, false)
    AICanCaptureCP("cp7", ATT, false)

It worked on all the maps I munged up until now. Is there a reason why it doesn't work on Geonosis? :(
#2
SWBF2 Modding / Re: How to add costume sound?
March 06, 2018, 11:58:44 AM
Hi there. Try this link: http://swbf-custom.forumactif.com/t205-faqadding-custom-sound-effects


This is a tutorial made by Icemember at the SWBF CUSTOM Forums. I saw you post and had this at handy.

It doesn't really say anything about "music" but maybe it can provide some extra tips for you. Hope it helps. :P

#3
SWBF2 Modding / Re: I need help with the textures
March 06, 2018, 11:45:16 AM
Hi. Have you tried opening  the "object's" odf file and add OverrideTexture = "tga_filename"?

Your object should have an ODF and TGA file. Your OverrideTexture command in the ODF should equal the TGA file's name.
#4
Hello again.

Scenario:

- Munged a Conquest Map and Disabled the Multiplayer Rules. (multiplayerRules = false)

Goal:

- Get the New Objective Popup Screen when the game starts. (Just like in any other campaign mission.)
- Remove the Yellow Arrows / Yellow Map highlights pointing the CPs.

How can this be done and what is the best / easiest way?

UPDATE (SOLVED)

It seems I have figured this out. I will post the solution here for future references:

   
    --This adds the CPs to the objective.  This needs to happen after the objective is set up
    conquest:AddCommandPost(cp1)
    conquest:AddCommandPost(cp2)
    conquest:AddCommandPost(cp3)
    conquest:AddCommandPost(cp4)
    conquest:AddCommandPost(cp5)
    conquest:AddCommandPost(cp6)

   
    conquest:Start()

    MapRemoveEntityMarker("cp1")
    MapRemoveEntityMarker("cp2")
    MapRemoveEntityMarker("cp3")
    MapRemoveEntityMarker("cp4")
    MapRemoveEntityMarker("cp5")
    MapRemoveEntityMarker("cp6")


#5
Quote from: Commander Cody on March 02, 2018, 03:40:00 PM
Try ForceHumansOntoTeam1() for the republic or empire and ForceHumansOntoTeam1(0) for the cis, alliance.

It works like a charm.

Thank you very much, Cody.

Feedback (Update):

- The only line that is valid for BFII LUA is ForceHumansOntoTeam1().
- It will restrict you to play with the SIDE which is marked as DEF in the script.
- The only solution to play with a side which is set as DEF (Team 2) by the default script, is to switch it to ATT (Team 1).









#6
Thank you very much for your response, Phantom.

I tried adding the lines to the SCRIPT, but it seems it crashes the game when the map loads in-game.

I used different variations, but still nothing. :P
#7
Hello.

I have a quick question for experienced LUA scripters:

Is there a LUA Command / Line that makes only one team playable (ATT / DEF) for a specific map?

To make sure I am specific as possible I will provide the following scenario:

- Munge a New Map (Era: CW / Sides: Rep vs. Cis / Mode: Conquest)

Can I make the new map so it can only allow me to play with REP and restrict me from selecting CIS? (Just like in the Campaign.)