找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4158|回复: 6

新建阵营求助

[复制链接]
发表于 2024-3-5 00:10:16 | 显示全部楼层 |阅读模式
各位大佬龙年好,小弟2024年初开始接触红警2修改,一开始是为了爽,目前想法是新建阵营&国家,当然都是在个人单机的前提下;
小时候也在网吧玩过(共和国之辉),2024年重新入红警2也去了解了一些红警知识,比如原版&尤复以及Mod的区别;
在B站看了一些修改视频,陆陆续续加了几个群,但是帮助不大;终于刷到了大佬艾木魁的教程视频,也刷了up黒の聖杯的视频,但是自己在尝试新建阵营&国家&单位的过程中遇到了一些超纲题(也不算真的超纲,只是大佬可能没提到)。小弟想在此贴咨询一些问题,请各位大佬帮忙解答一下,感激不尽~~
希望最终有一天也能做出合格乃至优秀的mod~(当然不会盗用他人素材)
 楼主| 发表于 2024-3-5 00:17:52 | 显示全部楼层
今天遇到了一个问题,我新增了一个阵营[HuaXia],在阵营中新增国家[China],copy苏联的矿场和矿车&矿车(倒矿),并在全局变量中定义了矿场&矿车,为什么进入游戏后建造矿场自带的矿车不会自动采矿?手动控制采矿后也有采矿与倒矿的动画,但是实际没有金钱增加?(矿车完成采矿后下面没有显示矿的格子数),以下是代码:
[General]
HarvesterUnit=HARV,CMIN,CNARV                                ;定义矿车
PrerequisiteProc=GAREFN,NAREFN,YAREFN,CNSM         ;注册矿厂

[CNSM]
;中国矿场        --苏军矿厂
UIName=Name:CNSM
Name=Soviet Ore Refinery
Image=NAREFN
BuildCat=Resource
DockUnload=yes
Refinery=yes
NumberOfDocks=1
;//gs revertNumberOfWaitingPoints=8
Bib=yes
NumberImpassableRows=3 ; This is the fix to the Repair depots are flat and RadioContact/Enter means I can drive on you assumption.  It counts from game west
Prerequisite=POWER,CABUILD
Strength=2000
Adjacent=2
Armor=wood
TechLevel=1
FreeUnit=CNORV
Sight=6
Owner=China
AIBasePlanningSide=1 ;gs 0 for Good, 1 for Evil
Cost=2000
Soylent=300
Points=80
Power=-50
Storage=200
Capturable=true
Crewed=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
HalfDamageSmokeLocation1=0,0,0
MaxDebris=8
PipScale=Tiberium
ThreatPosed=0        ; This value MUST be 0 for all building addons
;DamageParticleSystems=SparkSys,SmallGreySSys,BigGreySmokeSys
DamageSmokeOffset=410, 100, 165
AIBuildThis=yes
TogglePower=no
RefinerySmokeOffsetOne=-80, -232, 372
RefinerySmokeOffsetTwo=-80, 232, 372
RefinerySmokeFrames=50
RefinerySmokeParticleSystem=SmallGreySSys;
Spyable=yes
;WantsExtraSpace=yes ; gs This will look for a space AIBaseSpacing+1 when the computer places, but will settle for AIBasSpacing
ImmuneToPsionics=no ; defaults to yes for buildings, no for others
ResourceDestination=yes;gs for the AI to handle the slave miner, it has to understand what makes money

[CNARV]
;中国矿车
UIName=Name:CNARV
Name=War Miner
Image=HARV
Prerequisite=CNWEAP,PROC
Nominal=yes
ToProtect=yes
Category=Support
Strength=4000
Armor=medium
Dock=CNSM
Turret=yes
Primary=20mmRapid
ElitePrimary=20mmRapidE
Harvester=yes
TechLevel=1
Sight=4
Speed=4
Owner=China
AllowedToStartInMultiplayer=no
PipScale=Tiberium
CrateGoodie=yes
Storage=40
Cost=1400
Soylent=1400
Points=55
ROT=5
Crusher=yes
AutoCrush=yes
Crewed=no
SelfHealing=yes
OpportunityFire=yes
UnloadingClass=CNORV
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
VoiceSelect=WarMinerSelect
VoiceMove=WarMinerMove
VoiceAttack=WarMinerAttackCommand
VoiceEnter=WarMinerMove
VoiceHarvest=WarMinerHarvest
DieSound=GenVehicleDie
CrushSound=TankCrush
MaxDebris=6
DebrisTypes=TIRE
DebrisMaximums=4
Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
Weight=3.5
MovementZone=Crusher
ThreatPosed=0        ; This value MUST be 0 for all building addons
ThreatAvoidanceCoefficient=.65
DamageParticleSystems=SparkSys,SmallGreySSys
ImmuneToVeins=yes
ImmuneToPsionics=yes
ImmuneToRadiation=yes
ZFudgeColumn=9
ZFudgeTunnel=14
ZFudgeBridge=7
Size=3
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
Trainable=yes
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
ResourceGatherer=yes;gs for the AI to handle the slave miner, it has to understand what makes money
Bunkerable=no; Units default to yes, others default to no

[CNORV]
;中国矿车(倒矿)
UIName=Name:CNORV
Name=War Miner
Image=HORV
Nominal=yes
ToProtect=yes
Category=Support
Strength=4000
Armor=medium
Dock=CNSM
Harvester=yes
TechLevel=-1
Sight=4
Speed=4
Owner=China
AllowedToStartInMultiplayer=no
Cost=1400
Points=25
ROT=5
Crusher=yes
Crewed=no
SelfHealing=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
VoiceSelect=GenSovVehicleSelect
VoiceMove=GenSovVehicleMove
VoiceAttack=GenSovVehicleAttackCommand
VoiceFeedback=
CrushSound=TankCrush
DieSound=GenVehicleDie
Maxdebris=3
DebrisTypes=TIRE
DebrisMaximums=4
Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
Weight=3.5
MovementZone=Crusher
ThreatPosed=0        ; This value MUST be 0 for all building addons
ThreatAvoidanceCoefficient=1
DamageParticleSystems=SparkSys,SmallGreySSys
ImmuneToRadiation=yes


回复

使用道具 举报

发表于 2024-3-5 08:38:04 | 显示全部楼层
有建好的模版不用?
回复

使用道具 举报

发表于 2024-3-5 16:18:19 | 显示全部楼层
太长不看,建议直接套用双杀大佬的模板,如果还纠结于内部名字再自行修改替换
回复

使用道具 举报

 楼主| 发表于 2024-3-5 18:57:04 | 显示全部楼层
XYURI 发表于 2024-3-5 16:18
太长不看,建议直接套用双杀大佬的模板,如果还纠结于内部名字再自行修改替换 ...

是这位大佬的mod吗?https://bbs.ra2diy.com/forum.php ... page%3D1&page=1
没有找到下载方式啊
回复

使用道具 举报

发表于 2024-3-5 21:57:49 | 显示全部楼层
小小忍者 发表于 2024-3-5 18:57
是这位大佬的mod吗?https://bbs.ra2diy.com/forum.php?mod=viewthread&tid=11423&extra=page%3D1&page=1 ...



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

 楼主| 发表于 2024-3-6 20:55:48 | 显示全部楼层

非常感谢!!,已经在用了,不过还是没有找到自建矿厂矿车采矿不加钱的解决方法,目前暂时用的苏军矿厂;
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|Archiver|手机版|管理员邮箱|红警DIY论坛 |网站地图

GMT+8, 2026-8-26 19:45 , Processed in 0.057575 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表