Joined: 15 Jun 2011 Location: "Where do you want setup?".
Posted: Sun Jul 31, 2011 6:03 pm Post subject:
New side problems for me [Ares]
Hey guys, I've completed coding a new side (with one country) for YR using ares.
Right now, I can play as that side but am having a few problems am going to paste the code here before stating the bugs.
Code:
[Countries]
0=Americans ; Starts at zero because dialog returns 0 for first listing regardless of name
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=Special
14=EastGen
[Sides]
GDI=British,French,Germans,Americans,Alliance ;keep this order as GDI first and Nod second
Nod=Russians,Africans,Confederation,Arabs ;and you have to keep the names unless we want to do a concerted all ini and hard coded string sweep (I kinda do, Dustin, so go ahead and tell Henry we need it.)
ThirdSide=YuriCountry
FourthSide=EastGen
Civilian=Neutral
Mutant=Special
[EastGen]
UIName=Name:EastGen
Name=East Generals
Suffix=Soviet ;===========> I'd like to know what this does.
Prefix=B ;===========> I'd like to know what this does.
Color=DarkRed
Multiplay=yes
Side=FourthSide
SmartAI=yes
File.Flag=yrri.pcx ; Not working...
File.LoadScreen=ls%Srussia.shp ;===========> This is NOT working for me, The text is seen but the image is not.
File.LoadScreenPAL=mpascrn.pal ;===========> If this was supposed to be the reason, then I would've atleast seen some colors, but it's totally black.
Taunts\tauam%02i.wav
LoadScreenText.Name=NOSTR:East General
LoadScreenText.Brief=Name:EastGenBrief
MenuText.Status=NOSTR:Play as the good guy.
RandomSelectionWeight=0 ;===========> This is for testing currently
AI.PowerPlants=CAEPOWR
The problems are:
1- the loading screen is totally black, no matter what palette I use.
2- NCO bug (New construction options).
3- Althought of using yrri.pcx as the flag, nothing shows up.
4- I haven't touched AIMD.ini yet, whenever an AI player's country is EastGen the game crashes, what should I do?. _________________ Also known as superluigi949 and SuperMario949.
Banned for pretending to be someone else. QUICK_EDIT
Posted: Sun Jul 31, 2011 6:34 pm Post subject:
Re: New side problems for me [Ares]
Kcirevam wrote:
1- the loading screen is totally black, no matter what palette I use.
Don't know in-depth how the Ares system works but if everything else fails, try ditching the '%s' part (and substituting it with like fourthloader.shp for an example and appropriate .shp file somewhere) which is supposedly there to provide support for loading screens of different resolutions. I don't think that's necessary at all though, considering YR seems to always use 800x600 loading screen graphics.
Kcirevam wrote:
2- NCO bug (New construction options).
Most likely your country is able to build a building that does not have it listed as one of the owners in Owner= list. Make sure that it is listed in the Owner= list of every building that it can build (Prerequisites are satisfied). I would personally declare every single playable country in the game as an owner on all buildable structures (which by default excludes Con. Yards).
3- Althought of using yrri.pcx as the flag, nothing shows up.
Make sure your PCX file is in correct format. Files saved by some programs might not be read properly by the game, and additionally they need to be in 8-bit color depth (256 colors). Files saved by XCC Mixer through Copy as PCX function work as long as they're 8-bit images.
Kcirevam wrote:
4- I haven't touched AIMD.ini yet, whenever an AI player's country is EastGen the game crashes, what should I do?.
Pretty sure you need AI triggers for your new side for AI to work at all.
Suffix and Prefix are relics from C&C/TD and no longer seem to serve any real purpose. I would still leave the flags with whatever values in the INI file just in case. _________________ QUICK_EDIT
Joined: 15 Jun 2011 Location: "Where do you want setup?".
Posted: Sun Jul 31, 2011 7:37 pm Post subject:
yrri.pcx is yuri's flag, it's from the vanilla, it's not even a copied/renamed file, so I don't get why this happens. _________________ Also known as superluigi949 and SuperMario949.
Banned for pretending to be someone else. QUICK_EDIT
For the loading screen problem, can you try
File.LoadScreen=ls%srussia.shp
%s should be in lower case.
Does the new country have buildable barracks, a war factory et cetera? And does it own at least one item in the BaseUnit= list? _________________ QUICK_EDIT
nothing to do with the topic, but your location....is the word burying not burieng? _________________ I am authorized to send out the TMP Studio, PM ME IF YOU WANT IT And check this out, these were sent to me for help with terrain and zdata help along with TMP Studio/Builder
@Kcirevam, Just take your time, making a new side with it's own countries correctly requires alot of time and work. Just make sure your new country has it's own mcv that deploys into it's own Conyard and vise versa and also listed in BaseUnit=. They will also be required to have thier own Barracks, Warfactory, ShipYard and Power. Make sure they are listed in [Prerequisites] and in the [AI] section. Also for each building you will need AIBuilsThis=yes for those you want them to build and make sure the AIBasePlanningSide= mirrors the entry # for your new side.
; 0 for GDI, 1 for Nod, 2 for Yuri, and 3 for your new country. You will also have to code the aimd to produce your mcv "or game will crash" and any units you want the AI to build. If you still are having problems getting your new side going, feel free to contact me via PM.
For the loading screens, just use the name of the .shp file without the %s and pal file. But it should work either way. _________________
The enemy shall be injected with toxic poison - Venom QUICK_EDIT
ive been up for 2 1/2 days and not for a good reason. im tired, bored, and im hurting so...no it wasn't, lol.....im just hoping to be able to sleep soon.
But in my defense, I did say it had nothing to do with the topic, lol _________________ I am authorized to send out the TMP Studio, PM ME IF YOU WANT IT And check this out, these were sent to me for help with terrain and zdata help along with TMP Studio/Builder
^^nobody care how long you have been up, just stay away.
Kcirevam, you dont have to add an extra fake country called fourth side. you could do like this:
Quote:
[Sides]
...
EastGen=EastGen
[EastGen]
UIName=Name:EastGen
Name=East Generals
Suffix=Soviet ;===========> I'd like to know what this does. ;Check ModEnc or Deezire INI guide
Prefix=B ;===========> I'd like to know what this does.;Check ModEnc or Deezire INI guide
Color=DarkRed
Multiplay=yes
Side=EastGen
SmartAI=yes
File.Flag=yrri.pcx ; Not working...
File.LoadScreen=ls%Srussia.shp ;===========> This is NOT working for me, The text is seen but the image is not.
File.LoadScreenPAL=mpascrn.pal ;===========> If this was supposed to be the reason, then I would've atleast seen some colors, but it's totally black.
Taunts\tauam%02i.wav
LoadScreenText.Name=NOSTR:East General
LoadScreenText.Brief=Name:EastGenBrief
MenuText.Status=NOSTR:Play as the good guy.
RandomSelectionWeight=0 ;===========> This is for testing currently
AI.PowerPlants=CAEPOWRDefaultDisguise=GNNR
Crew=GNNR
SurvivorDivisor=300
AI.BaseDefenses=NAMCOIL,CAESAM
AI.BaseDefenseCounts=25,25
LoadScreenText.Color=255,255,255
ParaDrop.Types=GNNR,CENGINEER
ParaDrop.Num=8,1
Sidebar.MixFileIndex=2
Sidebar.YuriFileNames=no
1. Its %s, not %S(no capital). If that not working, you could just put the filename without the %s crap.
Some more stuff to think of, in [AI], there are some buildings from your new side you have to add there, or you will have IE when AI play as them. Your MCV in BaseUnit= tag aswell.
Also, you need some new task forces in aimd.ini and at least one base defense task force.
I think you know the rest(having at least one infantry with AllowedToStartInMultiplayer=yes or IE etc...). QUICK_EDIT
^^^ suck a fat one _________________ I am authorized to send out the TMP Studio, PM ME IF YOU WANT IT And check this out, these were sent to me for help with terrain and zdata help along with TMP Studio/Builder
I see what you are looking for. You are looking for a way to have the actual AI play as your team. Well that takes AIMD.ini programming itself. That is a adventure few like to go on. QUICK_EDIT
Joined: 15 Jun 2011 Location: "Where do you want setup?".
Posted: Mon Aug 01, 2011 5:20 pm Post subject:
Are you calling me stupid ?, am the best Yr modder if they were listed in a descending order .
Ontopic: the AImd.ini will be worked on now, I will copy paste everything and change names to see if it solves anything.
By the way, all of my new unit's/structures have "Owner=EastGen", nither the prerequisite system nor the units have "naval=" in them as of yet, I have all normal land factories, the NCO bug still happens. _________________ Also known as superluigi949 and SuperMario949.
Banned for pretending to be someone else. QUICK_EDIT
Post your rulesmd.ini and I'll be able to tell you right away what your doing wrong. _________________
The enemy shall be injected with toxic poison - Venom QUICK_EDIT
Joined: 15 Jun 2011 Location: "Where do you want setup?".
Posted: Tue Aug 02, 2011 11:26 am Post subject:
@hotrods: that's not me flaming you sorry... and the word is "Ascending" not "descending" which means reverse.
@cranium: look up 4 posts above yours, you didn't see that did you?. _________________ Also known as superluigi949 and SuperMario949.
Banned for pretending to be someone else. QUICK_EDIT
[Countries]
0=Americans ; Starts at zero because dialog returns 0 for first listing regardless of name
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=Special
14=EastGen
This is wrong, do not reorder the last four countries, they should always be last(Special is the last one, then Neutral, Nod and then GDI).
So move EastGen under 9=YuriCountry.
Then, you have ProtectWithWall=yes on some of you EastGen buildings(cons), but this side have no walls, this will give you lots of problems.
Your side have no tech center nor radar?
The rest looks good. _________________ "I'll be staying strapped cuse my mac-eleven make my nuts bigger" QUICK_EDIT
[Countries]
0=Americans ; Starts at zero because dialog returns 0 for first listing regardless of name
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=Special
14=EastGen
This is wrong, do not reorder the last four countries, they should always be last(Special is the last one, then Neutral, Nod and then GDI).
So move EastGen under 9=YuriCountry.
My mod has the new countries under the old ones, and works fine. It's nothing to do with that. _________________ MIdAS - Turning wages into beer since 2002 QUICK_EDIT
Just thought I'd post on countries, order is important, but only special is special, and even then i don't think it will really cause any ill effects, however for best performance keep countries and sides list in same exact order or bad things can happen"fact aibaseplanning gets screwed up if you countries and sides list are not in sync with each other", i know this from experience from weird bugs i had. So i suggest you use this:
For nco bug check first to make sure all new buildings are properly listed in buildingtypes array, then make sure to check all your prereq and owner tags etc.
For ai to start as your new country without crash, you only need to make 1 single trigger in aimd, just copy one of the existing mcv creation triggers, and have it set to your mcv and conyard in the taskforce and trigger setup.
Your new side will be read by fa2 so long as your rules and art ini files are in your ra2 folder and your using fa2 version 1.02."although i think it works on earlier versions as well."
This topic, i should have posted on long ago to help you, if these suggestions don't fix your mod, i will look at your rules later.
When i put my mod together"well its still a work in progress, although it all works, needs some more art tho,,, wait back on subject" which added 3 new sides to original game i had lots of problems too and for a while i never thought I'd get help with it. So now I'm glad if I can help someone else since someone helped me.
_________________ Grab my Map Logic Expansion Pack 5.2 here!
Adds random weather patterns into maps.
More disabled navalyards.
Preplaced Neutral buildings.
Additional new features.
Joined: 15 Jun 2011 Location: "Where do you want setup?".
Posted: Wed Aug 03, 2011 8:52 am Post subject:
The buildings in my rulsemd.ini start at 422, I think this might be the reason for the NCO bug, I started there because I thought this wouldn't crash the campaign. _________________ Also known as superluigi949 and SuperMario949.
Banned for pretending to be someone else. QUICK_EDIT
The buildings in my rulsemd.ini start at 422, I think this might be the reason for the NCO bug, I started there because I thought this wouldn't crash the campaign.
As long as you don't rescue values the array will not have a problem with your new buildings. For instance, you could write random letters and numbers and put it into the list and the game would still except it, the numbers are there for convenience to the modder. As long as you don't repeat things under the same value and only use numbers and letters you should be fine.
The issue is nco bug can easily be caused when u have a building which you should be able to build but can't such as a building which isn't properly listed in the array. Or a building which you meat the requirements for but are not the owner for. etc etc.
Also note this page for a guide to keep campaigns in your mod.
Also your rulesmd your posted is now old, upload your current one if you want people to further help you. Also if your using ARES, please also Modify your ares.bat file and turn on logging as prescribed in manual, then copy the debug.txt file and post it here and we can also check any modding errors that the debugger found for you. _________________ Grab my Map Logic Expansion Pack 5.2 here!
Adds random weather patterns into maps.
More disabled navalyards.
Preplaced Neutral buildings.
Additional new features.
Joined: 15 Jun 2011 Location: "Where do you want setup?".
Posted: Wed Aug 03, 2011 12:25 pm Post subject:
I didn't touch the .ini since I uploaded it so it's still the same one.
The only remaining problem is NCO, the AI now accepts playing as my side. _________________ Also known as superluigi949 and SuperMario949.
Banned for pretending to be someone else. QUICK_EDIT
Well, you could try changing the Owner on CAOUTPST; make some prerequisites on your buildings CAEPOWR instead of just POWER, same with CHARV and CAWEAP - make the prerequisite to CAREFN instead, not PROC. Put WarFactory=yes on your CAWEAP.
Quote:
Prerequisite=Barracks
For safety, change this into CAHAND for CENGINEER, CDOG and CAESAM. I don't even think BARRACKS can be in lower case. O.o
If these doesn't fix your bug, then I have no idea. QUICK_EDIT
Do as 001010011100101110 explained. Being that your EastGen buildings only have one owner =EastGen, there's no reason to use the generic prerequisites. BARRACKS,FACTORY,TECH, etc,etc. _________________
The enemy shall be injected with toxic poison - Venom QUICK_EDIT
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