:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::

Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Fri Oct 22, 2021 12:31 pm
All times are UTC + 0
 Forum index » Modding Central » Red Alert 2 Editing Forum
Ra2yr question.Problems on missions and AI (fixed)
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [11 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Lansmozar
Medic


Joined: 16 Oct 2018

PostPosted: Mon Aug 23, 2021 3:25 pm    Post subject:  Ra2yr question.Problems on missions and AI (fixed)
Subject description: Newside/Country/AI triggers/new looks ingame/plus RA2 campaign.
Reply with quote  Mark this post and the followings unread

Allied mission1 tanya wont came out
Allied mission4 instant victory when start
Allied last mission when i create soviet radar choro reinforcement wont arrived

Its started this problems when i create a new side and country of my mod.
On skirmish my side/country are woking well, ia can played also on my new country..

How can i fix this? Thanks

Last edited by Lansmozar on Fri Sep 03, 2021 1:50 pm; edited 1 time in total

Back to top
View user's profile Send private message
maestro21
Cyborg Engineer


Joined: 25 Feb 2008

PostPosted: Mon Aug 23, 2021 4:56 pm    Post subject: Reply with quote  Mark this post and the followings unread

https://ppmforums.com/topic-34809/ares-add-in-all-missions-from-ra2yuri-campaign-tutorial/?highlight=campaign


It is better to use these tutorials in order to play even RA2 original campaigns in YR without any problems.In this tutorial, all we need to edit the required ini. files as mentioned in the descriptions. I hope this helps.Just copy paste required lines of the ini. files in order not to break your mod ,also. I hope this helps a little bit.It is understandable, just don't be lazy, ok ? Very Happy

Back to top
View user's profile Send private message
m7
Commander


Joined: 17 Apr 2009

PostPosted: Mon Aug 23, 2021 5:45 pm    Post subject: Reply with quote  Mark this post and the followings unread

Creating sides and countries breaks the original campaigns. The campaigns depend on the specific index location of each country in the [Countries] list if I remember correctly, so you'd have to edit all the original campaigns to fix this on each map.

Back to top
View user's profile Send private message
Lansmozar
Medic


Joined: 16 Oct 2018

PostPosted: Tue Aug 24, 2021 4:16 am    Post subject: Reply with quote  Mark this post and the followings unread

problem on mission is solve thanks but when i play on skirmish picked on mynewside as AI the game is crush...

this is my code working before on ia but problem on missions..
and now after i done copy paste from tutorial missions fixed but crushed on IA..

Spoiler (click here to read it):
****************************************************************************************************

; hack section
Shipyard=ZAYARD

RepairBay=ZADEPT
BaseUnit=ZMCV

HarvesterUnit=zChronoMiner,zWarMiner
PadAircraft=DHWK





****************************************************************************************************

; Building prerequisite categories are specified here.
PrerequisitePower=ZAPOWR
PrerequisiteFactory=ZAWEAP
PrerequisiteBarracks=ZAPILE
PrerequisiteRadar=ZAAIRC
PrerequisiteTech=ZATECH
PrerequisiteProc=ZAREFN,ZAMINIREFN





****************************************************************************************************

[Countries]
10=Outzider


NOTE new sides must listed between yuri and civilian

[Sides]
OutziderSide=Outzider





****************************************************************************************************

[AI]
BuildConst=ZACNST
BuildPower=ZAPOWR

BuildRefinery=ZAMINIREFN;ZAREFN
BuildBarracks=ZAPILE
BuildTech=ZATECH
BuildWeapons=ZAWEAP

BuildRadar=ZAAIRC
ConcreteWalls=ZAFENC

BuildNavalYard=ZAYARD
BuildDummy=GAPILL,NALASR,YAGGUN





****************************************************************************************************

; ******* Country Statistics *******

[Outzider]
UIName=NOSTR:Outzider
Name=Outzider
Suffix=Allied
Prefix=G
Color=Gold
Multiplay=yes
Side=OutziderSide
SmartAI=yes
;Airspeed = ;multiplier to speed for all air units [larger means faster] (def=1.0)
;Armor = ;multiplier to armor strength for all units and buildings [larger means stronger] (def=1.0)
;Cost = ;multiplier to cost for all units and buildings [larger means costlier] (def=1.0)
;Firepower = ;multiplier to firepower for all weapons [larger means more damage] (def=1.0)
;Groundspeed = ;multiplier to speed for all ground units [larger means faster] (def=1.0)
;ROF = ;multiplier to Rate Of Fire for all weapons [larger means slower ROF] (def=1.0)
;BuildTime = ;multiplier to general object build time [larger means longer to build] (def=1.0)
;WallOwner = ;Will this house own walls that are placed near its buildings (def=yes)?
CostInfantryMult=1.0
BuildTimeInfantryMult=1.0
CostUnitsMult=1.0
BuildTimeUnitsMult=1.0
;For info look into Ares documents
AI.PowerPlants=ZAPOWR
ParaDrop.Types=SpecialForce
ParaDrop.Num=5
;ParaDrop.Aircraft=
;Parachute.Anim=
;VeteranBuildings=
;VeteranAircraft=
;VeteranUnits=
;VeteranInfantry=
MenuText.Status=NOSTR:Outzider is very special. ;This is from menu bar
;ListIndex=1
RandomSelectionWeight=1
AIRandomSelectionWeight=1
;File.Flag=
;File.ObserverBackgound=
;File.ObserverFlag=
;File.ObserverFlagAltPalette=
;File.LoadScreen=
;File.LoadScreenPAL=
;File.Taunt=
;LoadScreenText.Color=
;LoadingTheme=
LoadScreenText.Brief=NOSTR:Outzider Tech ;lowerleft
LoadScreenText.Name=NOSTR:Outzider Force ;rightside
LoadScreenText.SpecialName=NOSTR:Outzider is formidable ;upperleft
StartInMultiplayer.Types=SpecialForce,ZAPOC
StartInMultiplayer.WithConst=no
;StartInMultiplayerUnitCost=
;AI.BaseDefenses=
;AI.BaseDefenseCounts=





[OutziderSide]
UIName=NOSTR:OutziderSide
Name=OutziderSide
Crew=SpecialForce
Engineer=ENGINEER
Technician=CTECH
DefaultDisguise=SpecialForce
SurvivorDivisor=500
AI.BaseDefenses=ZABNKR,ZAAGUN,GTGCAN
AI.BaseDefenseCounts=10,10,10
ParaDrop.Types=SpecialForce
ParaDrop.Num=5
;ParaDrop.Aircraft=
;Parachute.Anim=
;HunterSeeker=
;Sidebar.MixFileIndex=1
;Sidebar.YuriFileNames=false
;ToolTipColor=
MessageTextColor=43,239,255 ;192,0,0
LoadScreenText.Color=43,239,255 ;192,0,0
EVA.Tag=Americans



Rulesmd.ini
 Description:
full rulesmd.ini

Download
 Filename:  Rulesmd.ini
 Filesize:  885.18 KB
 Downloaded:  1 Time(s)


Last edited by Lansmozar on Thu Aug 26, 2021 12:53 am; edited 2 times in total

Back to top
View user's profile Send private message
E1 Elite
Commander


Joined: 28 May 2013

PostPosted: Tue Aug 24, 2021 5:28 am    Post subject: Reply with quote  Mark this post and the followings unread

An example 4th side - https://ppmforums.com/post-536510/new-faction-ai-crashing-on-game-start-log-uninformative/#536510

It has ProtectWithWall without having any ConcreteWalls for 4th side. Correct it by giving a wall for 4th side or remove ProtectWithWall for 4th side structures.

Additional side would need adding AITriggers in aimd.ini.

Back to top
View user's profile Send private message
Lansmozar
Medic


Joined: 16 Oct 2018

PostPosted: Tue Aug 24, 2021 12:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

Already done on aimd and walls before.... My problem is
the mission affected by my new side...

When i remove the newside on country statistic the mission is okey...


But when i returned the side the mission have problem like on mission 1 allied tanya wony came out..

Back to top
View user's profile Send private message
E1 Elite
Commander


Joined: 28 May 2013

PostPosted: Wed Aug 25, 2021 4:14 am    Post subject: Reply with quote  Mark this post and the followings unread

As @m7 mentioned, you have to edit every SP map to correct the country/house index references when you add new countries/sides.

Back to top
View user's profile Send private message
Virgil
Cyborg Firebomber


Joined: 22 Jul 2018

PostPosted: Wed Aug 25, 2021 4:12 pm    Post subject: Reply with quote  Mark this post and the followings unread

The problem here is, that game is referring to the Country used in triggers with their index in list, not their name, so if you add one new country to rules, you will need to change all triggers involved with the list by giving +1 to the index they use, and +2 if you add two new countries...

Back to top
View user's profile Send private message
Lansmozar
Medic


Joined: 16 Oct 2018

PostPosted: Thu Aug 26, 2021 12:47 am    Post subject: Reply with quote  Mark this post and the followings unread

i found a solution.....

my problem is when i put outzider(mynew country) on the counties like this between yuri country and GDI ihave no problems on skirmish AI, but on some mission is eror.
Spoiler (click here to read it):
[Countries]
0=Americans
1=Alliance
2=French
3=Germans
4=British
5=Africans
6=Arabs
7=Confederation
8=Russians
9=YuriCountry
10=Outzider     ;my country
11=GDI
12=Nod
13=Neutral
14=CACOUNTRY0
15=CACOUNTRY1
16=CACOUNTRY2
17=CACOUNTRY3
18=CACOUNTRY4
19=CACOUNTRY5
20=CACOUNTRY6
21=CACOUNTRY7
22=CACOUNTRY8
23=CACOUNTRY9
24=CACOUNTRY10;Add additional countries after this point.
25=Special


but if i put outzider followed on CACOUNTRY10 like this, nothing happend on mission but on the ai skirmish is crushed..
Spoiler (click here to read it):
[Countries]
0=Americans
1=Alliance
2=French
3=Germans
4=British
5=Africans
6=Arabs
7=Confederation
8=Russians
9=YuriCountry
10=GDI
11=Nod
12=Neutral
13=CACOUNTRY0
14=CACOUNTRY1
15=CACOUNTRY2
16=CACOUNTRY3
17=CACOUNTRY4
18=CACOUNTRY5
19=CACOUNTRY6
20=CACOUNTRY7
21=CACOUNTRY8
22=CACOUNTRY9
23=CACOUNTRY10;Add additional countries after this point.
24=Outzider
26=Special


so i decided to put both of outzider on the list
10=outzider   between yuricountry and GDI
25=Outzider and next to CACOUNTRY
and so far dont have problems
Spoiler (click here to read it):
[Countries]
0=Americans
1=Alliance
2=French
3=Germans
4=British
5=Africans
6=Arabs
7=Confederation
8=Russians
9=YuriCountry
10=Outzider
11=GDI
12=Nod
13=Neutral
14=CACOUNTRY0
15=CACOUNTRY1
16=CACOUNTRY2
17=CACOUNTRY3
18=CACOUNTRY4
19=CACOUNTRY5
20=CACOUNTRY6
21=CACOUNTRY7
22=CACOUNTRY8
23=CACOUNTRY9
24=CACOUNTRY10;Add additional countries after this point.
25=Outzider
26=Special

Back to top
View user's profile Send private message
MRMIdAS
Energy Commando


Joined: 17 Jul 2008

PostPosted: Thu Aug 26, 2021 8:22 am    Post subject: Reply with quote  Mark this post and the followings unread

I've not done 4th side logic, but I'd bet dollars to donuts you need an "Outzider Side" and an "Outzider Country" so I'd rename them like that, maybe "OutziderS" and "OutziderC" and see if that works.

Also, if it does, try shifting them about and seeing if the missions and skirmishes still work.
_________________
MIdAS - Turning wages into beer since 2002

Back to top
View user's profile Send private message
Lansmozar
Medic


Joined: 16 Oct 2018

PostPosted: Wed Sep 29, 2021 10:00 am    Post subject: Reply with quote  Mark this post and the followings unread

SAMPLE 4th side country with AI and RA2 campaign.


PASTE TO DIRECTORY.rar
 Description:

Download
 Filename:  PASTE TO DIRECTORY.rar
 Filesize:  8.65 MB
 Downloaded:  4 Time(s)


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [11 Posts] Mark the topic unread ::  View previous topic :: View next topic
 Forum index » Modding Central » Red Alert 2 Editing Forum
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1852s ][ Queries: 13 (0.0114s) ][ Debug on ]