Phobos-developers / Phobos

Ares-compatible C&C Red Alert 2: Yuri's Revenge engine extension
GNU Lesser General Public License v3.0
254 stars 83 forks source link

Veinhole Using #1249

Open KuroNoSeiHai opened 2 months ago

KuroNoSeiHai commented 2 months ago

Description

It can't work.

Phobos Version

Build 39

Conditions to reproduce

No response

INI code

No response

Steps to reproduce

1.I copied TS ini and SHP(.tem .sno) file. 2.And I use Map editor added Veinhole(Overlay) 3.Test

Expected behaviour

Works like TS.

Actual behaviour

Just like a normal terrain.

Additional context

No response

Checklist

ZivDero commented 2 months ago

What map editor did you use? FA2 by default does not place Veinholes correctly, you need to set some data (please refer to FS or WAE to do it correctly). If that doesn't help, please provide all your code. Also keep in mind you have to pre-place some veins for them to grow at all IIRC.

KuroNoSeiHai commented 2 months ago

What map editor did you use? FA2 by default does not place Veinholes correctly, you need to set some data (please refer to FS or WAE to do it correctly). If that doesn't help, please provide all your code. Also keep in mind you have to pre-place some veins for them to grow at all IIRC.

I am using FA2. I will try to WAE. Thanks for your help.

KuroNoSeiHai commented 2 months ago

What map editor did you use? FA2 by default does not place Veinholes correctly, you need to set some data (please refer to FS or WAE to do it correctly). If that doesn't help, please provide all your code. Also keep in mind you have to pre-place some veins for them to grow at all IIRC.

I used WAE to place Veinholes. But it still doesn't work. Here is my code. rulesmd.txt

And I don't know how to use WAE to place veins.

ZivDero commented 2 months ago

What map editor did you use? FA2 by default does not place Veinholes correctly, you need to set some data (please refer to FS or WAE to do it correctly). If that doesn't help, please provide all your code. Also keep in mind you have to pre-place some veins for them to grow at all IIRC.

I used WAE to place Veinholes. But it still doesn't work. Here is my code. rulesmd.txt

And I don't know how to use WAE to place veins.

WAE has a special "Place Veinhole" tool, akin to the one found in FS. Please use that and don't forget to place veins around the veinhole.

KuroNoSeiHai commented 2 months ago

What map editor did you use? FA2 by default does not place Veinholes correctly, you need to set some data (please refer to FS or WAE to do it correctly). If that doesn't help, please provide all your code. Also keep in mind you have to pre-place some veins for them to grow at all IIRC.

I used WAE to place Veinholes. But it still doesn't work. Here is my code. rulesmd.txt And I don't know how to use WAE to place veins.

WAE has a special "Place Veinhole" tool, akin to the one found in FS. Please use that and don't forget to place veins around the veinhole.

I have used it. But it seems WAE YR can't place veins. I don't find it.

ZivDero commented 2 months ago

What map editor did you use? FA2 by default does not place Veinholes correctly, you need to set some data (please refer to FS or WAE to do it correctly). If that doesn't help, please provide all your code. Also keep in mind you have to pre-place some veins for them to grow at all IIRC.

I used WAE to place Veinholes. But it still doesn't work. Here is my code. rulesmd.txt And I don't know how to use WAE to place veins.

WAE has a special "Place Veinhole" tool, akin to the one found in FS. Please use that and don't forget to place veins around the veinhole.

I have used it. But it seems WAE YR can't place veins. I don't find it.

image

I've attached a test map.

veintest.txt

KuroNoSeiHai commented 2 months ago

Thanks, it works. But I find it must set 129=VEINS, 170=VEINHOLE and 181=VEINHOLEDUMMY in OverlayTypes like TS. If set like docs, it will not work. Here is the code. [OverlayTypes] 1=GASAND 2=CYCL 3=GAWALL 4=BARB 5=WOOD 6=DUMMY 7=DUMMY2 8=DUMMY3 9=DUMMY4 10=DUMMY5 11=DUMMY6 12=DUMMY7 13=DUMMY8 14=DUMMY9 15=DUMMY10 16=DUMMY11 17=DUMMY12 18=V16 19=V17 20=V18 21=DUMMY13 22=DUMMY14 23=FENC 24=DUMMY15 25=BRIDGE1 26=BRIDGE2 27=NAWALL 28=GEM01 29=GEM02 30=GEM03 31=GEM04 32=GEM05 33=GEM06 34=GEM07 35=GEM08 36=GEM09 37=GEM10 38=GEM11 39=GEM12 42=TRACKS01 43=TRACKS02 44=TRACKS03 45=TRACKS04 46=TRACKS05 47=TRACKS06 48=TRACKS07 49=TRACKS08 50=TRACKS09 51=TRACKS10 52=TRACKS11 53=TRACKS12 54=TRACKS13 55=TRACKS14 56=TRACKS15 57=TRACKS16 58=TRACKTUNNEL01 59=TRACKTUNNEL02 60=TRACKTUNNEL03 61=TRACKTUNNEL04 62=RAILBRDG1 63=RAILBRDG2 64=CRAT01 65=CRAT02 66=CRAT03 67=CRAT04 68=CRAT0A 69=CRAT0B 70=CRAT0C 71=DRUM01 72=DRUM02 73=PALET01 74=PALET02 75=PALET03 76=PALET04 77=LOBRDG01 78=LOBRDG02 79=LOBRDG03 80=LOBRDG04 81=LOBRDG05 82=LOBRDG06 83=LOBRDG07 84=LOBRDG08 85=LOBRDG09 86=LOBRDG10 87=LOBRDG11 88=LOBRDG12 89=LOBRDG13 90=LOBRDG14 91=LOBRDG15 92=LOBRDG16 93=LOBRDG17 94=LOBRDG18 95=LOBRDG19 96=LOBRDG20 97=LOBRDG21 98=LOBRDG22 99=LOBRDG23 100=LOBRDG24 101=LOBRDG25 102=LOBRDG26 103=LOBRDG27 104=LOBRDG28 105=TIB01 106=TIB02 107=TIB03 108=TIB04 109=TIB05 110=TIB06 111=TIB07 112=TIB08 113=TIB09 114=TIB10 115=TIB11 116=TIB12 117=TIB13 118=TIB14 119=TIB15 120=TIB16 121=TIB17 122=TIB18 123=TIB19 124=TIB20 125=LOBRDGE1 126=LOBRDGE2 127=LOBRDGE3 128=LOBRDGE4 129=VEINS 130=TIB2_01 131=TIB2_02 132=TIB2_03 133=TIB2_04 134=TIB2_05 135=TIB2_06 136=TIB2_07 137=TIB2_08 138=TIB2_09 139=TIB2_10 140=TIB2_11 141=TIB2_12 142=TIB2_13 143=TIB2_14 144=TIB2_15 145=TIB2_16 146=TIB2_17 147=TIB2_18 148=TIB2_19 149=TIB2_20 150=TIB3_01 151=TIB3_02 152=TIB3_03 153=TIB3_04 154=TIB3_05 155=TIB3_06 156=TIB3_07 157=TIB3_08 158=TIB3_09 159=TIB3_10 160=TIB3_11 161=TIB3_12 162=TIB3_13 163=TIB3_14 164=TIB3_15 165=TIB3_16 166=TIB3_17 167=TIB3_18 168=TIB3_19 169=TIB3_20 170=VEINHOLE 171=SROCK01 172=SROCK02 173=SROCK03 174=SROCK04 175=SROCK05 176=TROCK01 177=TROCK02 178=TROCK03 179=TROCK04 180=TROCK05 181=VEINHOLEDUMMY I mean use TS overlay indices in rulesmd rather than docs said and your text map can make it. But I don't know if this condition mean works properly.

ZivDero commented 2 months ago

Thanks, it works. But I find it must set 129=VEINS, 170=VEINHOLE and 181=VEINHOLEDUMMY in OverlayTypes like TS. If set like docs, it will not work. I mean use TS overlay indices in rulesmd rather than docs said and your text map can make it. But I don't know if this condition mean works properly.

The IDs ARE the same as in TS. The IDs provided in the docs should be correct and the same ones as in TS. Keep in mind that what matters is not the number left of "=", but the actual position in the list, 0-based. So if it says 126, it should be the 126th (or 127th 1-based) line. In fact, vanilla rules already have them in the correct place.

Metadorius commented 2 months ago

The IDs ARE the same as in TS. The IDs provided in the docs should be correct and the same ones as in TS. Keep in mind that what matters is not the number left of "=", but the actual position in the list, 0-based. So if it says 126, it should be the 126th (or 127th 1-based) line.

I think this could be made more clear in docs and/or unhardcoded, because even I recall me not fully realizing that, so a reminder would be good since people might not remember all the engine quirks.

KuroNoSeiHai commented 2 months ago

Thanks, it works. But I find it must set 129=VEINS, 170=VEINHOLE and 181=VEINHOLEDUMMY in OverlayTypes like TS. If set like docs, it will not work. I mean use TS overlay indices in rulesmd rather than docs said and your text map can make it. But I don't know if this condition mean works properly.

The IDs ARE the same as in TS. The IDs provided in the docs should be correct and the same ones as in TS. Keep in mind that what matters is not the number left of "=", but the actual position in the list, 0-based. So if it says 126, it should be the 126th (or 127th 1-based) line. In fact, vanilla rules already have them in the correct place.

Thanks, like the animations list. I got it. OverlayTypes 39 next to 42, cause this.

KuroNoSeiHai commented 2 months ago

BTW, is there another in-game method to create veinhole or veins, for example, use debris.

KuroNoSeiHai commented 2 months ago

Excuse me, now I can use WAE place veinhole. BUT I don't know how to place vein surrounding, because I can't find Veins. It is not in WAE overlay list.

ZivDero commented 2 months ago

Excuse me, now I can use WAE place veinhole. BUT I don't know how to place vein surrounding, because I can't find Veins. It is not in WAE overlay list.

By default the VEINS overlay is hidden in WAE for YR. You need to remove the line VEINS=true from EditorConfig.ini.

KuroNoSeiHai commented 2 months ago

Excuse me, now I can use WAE place veinhole. BUT I don't know how to place vein surrounding, because I can't find Veins. It is not in WAE overlay list.

By default the VEINS overlay is hidden in WAE for YR. You need to remove the line VEINS=true from EditorConfig.ini.

I set it, and I can place VEINS. I meet another problem. I used FinalSun place Veinhole and veins, veins can grow properly, but I place in WAE, vein can't grow. image This is screenshot, i place it.