#Sanginir Tribe

1 messages · Page 6 of 1

obtuse orchid
#

but i can find out

#

unitEffect?

#

i can copy poison code for this wait let me cook

#

should i make leech work if units are same hp

#

if i did, bats would dominate warriors

#

if i didnt, they would not dominate warriors as hard, and live with 5 hp

#

oh it does work on same hp enemies

#

nice

#

yall will ened to lock in

#

to beat sanginir

versed whale
#

literally

#

add 1 gld entry

#

and do unit.AddEffect(<youreffectenumcachedandall>)

obtuse orchid
obtuse orchid
#

btw

#

i know its not hard

versed whale
#

bro

#

its not in poison code

obtuse orchid
#

shut up ✋

#

🤏

versed whale
#

im converting my project omggg im shitting my pants will i lose 2 years of progress

#

ok thats anticlimactic i need to wait 10 years for the shaders to compile

tacit pasture
#

Also addpatchdatatype

versed whale
#

no need

#

its built into polymod

tacit pasture
#

Really?

#

Oh

versed whale
#

i think so

tacit pasture
#

I don't think so

#

I mean Militas had it

#

Long ago

#

Idk what now

versed whale
#

wtf

#

its not

#

and no tileeffect aswell

#

wtfff

#

thats so stupid

tacit pasture
#

So mention it to bananique idk exact syntax rn

#

Will be home in an hour

obtuse orchid
#

i have this

#

issues are "effectdata" cant be found and UnitEffect doesnt have a definition for it

#

which is an easy fix, gld

#

wait it must UnitEffect instead of EffectData

#

hmmm now type

versed whale
#

ok so u use UnitEffect.Type

#

first of all

#

second of all

obtuse orchid
#

.Type doesnt work

#

its not a thing

versed whale
#

fym

#

oh wait

#

yeah

#

just use UnitEffect

#

as is

obtuse orchid
obtuse orchid
versed whale
#

i always mix this and unitability up

versed whale
obtuse orchid
#

how dumb do u think i am bruh

versed whale
#

not at all

obtuse orchid
#

ok so

#

is this fixed by gld

#

cuz how would the main.cs detect that

versed whale
#

no

versed whale
#

but without .type

obtuse orchid
#

cuz i had this

obtuse orchid
#

im making it dosomething now

versed whale
obtuse orchid
#

and wtf is

#

addpatchdatatype

versed whale
#

ok first of all unitEffect not UnitEffect in gld pls, consistency is key

versed whale
versed whale
#

PolyMod.Loader.AddPatchDataType("unitEffect", typeof(UnitEffect));

obtuse orchid
#

i think sacrifice code still works right @tacit pasture so i should be able to just copy and paste that one

tacit pasture
#

You have to do enumcache

obtuse orchid
#

wait does that go in the load method

tacit pasture
#

And the EnumCache is

EnumCache<UnitEffect>.getType()
#

I believe so

tacit pasture
#

No no

obtuse orchid
#

ripè

tacit pasture
#

The addpatchdata was okay

#

Just put it in Load

obtuse orchid
#

it is in load

tacit pasture
#

Yeah but the whole line was fine

#

Syntax wise

#

No need to put enumcache there

obtuse orchid
#

brooo

tacit pasture
#

That is for when you want to use the effect later

obtuse orchid
#

oh i understand now

#

mb

#

mb

#

mb

versed whale
#

now sanginir will be cursed to never work

#

mwahahaha

obtuse orchid
#

ok no errors

obtuse orchid
#

NO

#

lol i dont need addpatchdata

#

ts works on its own

tacit pasture
#

you do tho

versed whale
#

not in game it doesnt

obtuse orchid
#

yall tried to trick me i knew you were tricksters

tacit pasture
#

obviously vs code wont show error

obtuse orchid
#

oh

tacit pasture
#

bro

#

cause it is runtime

obtuse orchid
#

wait how come

#

it needs to check in patch

#

for unit effect

#

but not for literally anything else

obtuse orchid
versed whale
#

cuz this one isnt built in by polymod

obtuse orchid
#

that makes empowerment break

tacit pasture
#

it has to check in enumcache for everything custom

versed whale
obtuse orchid
#

so can i be sent over a functional polib

#

pls

#

idc about verify

#

send it in dms

tacit pasture
#

and you dont need addpatchdata for usual custom stuff but uniteffects is not in enumcache by default

#

@versed whale can you do it im not at pc ig

versed whale
tacit pasture
#

bro what? just send over a single file

versed whale
#

ok fine i need to compile 3k shaders

obtuse orchid
#

what

#

shaders

versed whale
obtuse orchid
#

oh

tacit pasture
#

uh what???

obtuse orchid
#

brooo

versed whale
versed whale
#

i mean i would

#

but

#

3k shaders

#

cuz i upgraded ue5 versions

#

anyways ig while compiling shaders ig i can fix polib after breaking it again

obtuse orchid
#

guys check out this ✨ method ✨ with this ✨ code ✨

#

ok wait

#

one small detail tho

#

if i make it remove effect there

#

does it remove when it attacks

versed whale
#

yes but it returns good number so its ok

obtuse orchid
#

or does it remove as soon as the possibility arises

#

wait no thats not an issue

#

cuz

#

it only applies the effect once leech healing triggered

tacit pasture
#

where does the effect get added?

obtuse orchid
#

(even if unit has max hp btw)

obtuse orchid
#

in leech healing

#

right before it checks for hp

#

:)

#

so hopefully

#

if it works as intended

#

leech healing detects the unit has less hp
effect gets added
right after, checks for the effect
it has the effect so it grants bonus attack
removes the effect

versed whale
#

wait actually

#

shouldnt banan patch prefix for battleResults @tacit pasture ?

#

yes he should

tacit pasture
#

uh idk this might also work

versed whale
#

im not sure

tacit pasture
#

oh yeah it would work inversely

#

i think

obtuse orchid
#

rip it doesnt work

versed whale
#

yeah

#

patch battleResults.<get battle results or whatever idk the name i forgor>

obtuse orchid
#

so all the stuff i did in the empowerment with getattack

#

is useless?

versed whale
#

BattleHelpers.GetBattleResults

versed whale
#

you gotta switch the prefix out for this method

#

not attackAction

#

im guessing

obtuse orchid
#

hey one small issue

#

leech is always triggering

#

even on high hp enemies

#

wait

#

it triggers when the enemy will have less hp than them when the battle ends

#

should it be prefix instead of postfix

versed whale
#

yeah ofc

#

you wanna do stuff before the stuff happens

obtuse orchid
#

so in that case

#

if the effect is applied before the attack happens

#

maybe the effect will trigger the attack bonus

#

but prob not

versed whale
#

the idea is: prefix to add effect --> attack calculation gets attack of unit --> postfix getAttack, check for effect, and if effect is there then put higher damage --> remove effect when attack is over (probably postfix the same method u prefixed or sum)

obtuse orchid
#

what i have now is prefix adds effect --> get attack postfix > checks for effect > put higher damage > remove effect

versed whale
#

instead of attackAction

obtuse orchid
#

rip

#

ok so i accidentally broke it

#

none of my units do any damage any more

#

and

#

empowerment doesnt work

#

should leech even increase attack tho

#

it seems a bit strong

#

and i dont want to get another headache from figuring ts out

#

so i am making the executive deicision

#

to make leech not increase attack

#

ok what to make next

#

probably sacrifice

#

i think i can just copy and paste from old sanginir

#

but tomorrow cuz today i dont want to work too hard

#

yeah so something went wrong

#

wtf

#

is going on

#

its so glitchy

#

when a leech unit kills another unit

#

it simply

#

doesnt

#

asfjaofjaoegj

#

prefix issue prob

#

im gonna switch it to postfix

hasty zephyr
#

This is a feature

#

Not a bug

obtuse orchid
#

no no no

#

perhaps healing after the other unit has less hp is a feature

hasty zephyr
#

The polytopian is still there it just doesn’t have any blood left c:

obtuse orchid
hasty zephyr
#

I saw that

obtuse orchid
#

saw what

hasty zephyr
#

👀

#

Uh

obtuse orchid
hasty zephyr
#

Nothing

obtuse orchid
#

@fluid walrus when jeptir

obtuse orchid
#

guys i need to lock tf in

#

i mustn't dwell on previous problems

#

i must move on to the next polyscript tomorrow

#

because waiting wont make fapingvin and wasd find the issue faster

#

tomorrow i plan to do sacrifice and more monuments

#

i hope to have sanginir done by next week

hasty zephyr
#

🩸

obtuse orchid
#

hi cleigh

obtuse orchid
#

(when a unit with leech kills a unit inside city borders, it gets +1 hp)

#

i can literally do it by making an improvement that gives 1 population and is consumed and discrete

#

or maybe just discrete idk

#

i'll have to experiment

#

but i make it unbuildable

#

and when leech triggers, it spawns that improvement

#

i can throw it into the leech code

#

cleigh am i cooking

hasty zephyr
#

🥘

obtuse orchid
#

real shit cleigh

tacit pasture
#

ig it would work

#

did empowerment ever fix itself?

obtuse orchid
tacit pasture
#

rip

#

really?

obtuse orchid
#

yes

#

i removed polib

#

works fine

#

i was on old version

tacit pasture
#

i think i tested it with polib

#

ohh

#

i see

sour beacon
#

RAHHHHHHHH

#

oops

#

wrong chat

#

mb

tacit pasture
#

lmao

obtuse orchid
#

lol

#

w klipi

versed whale
tacit pasture
#

btw while touring polib code

#

i think we need to rewrite more thing than i originally thought

versed whale
#

like?

obtuse orchid
#

better bird design compared to last one or is it still bad

#

its more polytopia ish i think

#

better actually

humble girder
#

I like this newer one better, feels more polytopia-y

obtuse orchid
#

ty

#

ok i have a concern

#

i put leech in here

#

i put this in leech*

#

so if it works it should place the improvement

#

the only issue is

#

it will work in enemy cities

#

and i dont have gamestate in the parameters

#

so idk how to make it so it will only spawn in my territory

obtuse orchid
#

rip it doesnt even work

#

wait yes it does it just doesnt give pop like it should

obtuse orchid
#

i also cant find how poison does it

#

aaaaaaaaaaaand i forgot to keep the old sanginir dll to find out how to make sacrifice work

#

..

#

aa

#

aweaweaweaweawe

versed whale
#

do

#

GameManager.GameState.ActionStack.Add( new BuildAction(<fill out the parameters>) )

versed whale
obtuse orchid
#

cuz i used bot code

versed whale
#

also

#

wdyt

#

about the gradient

obtuse orchid
#

its awesome

versed whale
#

ok

obtuse orchid
sour beacon
obtuse orchid
#

on one hand it fits the theme

#

on the other it doesnt fit the polytopia field theme unless its elyrion

versed whale
sour beacon
#

It doesnt look cool

#

i like ancients ground without it

#

i think gradient is ely gimmick

versed whale
#

fair

#

idk

#

i cant decide

#

ok i wont do gradient

#

i got a better idea

#

no im actually gonna leave it as is

sour beacon
#

do mountains

#

wait tf its not ancients chat

versed whale
#

yes

tacit pasture
#

Ancient sanginir

versed whale
#

man i thought we were moving the convo

obtuse orchid
versed whale
obtuse orchid
#

lets go dnspy

tacit pasture
#

if you start typing BuildAction(
inside the parentheses vs code will let you see all overloads (with a little arrow)

obtuse orchid
tacit pasture
#

somehow like this

obtuse orchid
#

oh um

#

ok

tacit pasture
#

bro can you take any smaller screenshots 😭

obtuse orchid
#

ok but dnspy tried to cook

#

i just have to like

#

fix issue

tacit pasture
#

System.IntPtr is one of its overloads and you generally dont want to use that one

#

i see

#

why it happens

obtuse orchid
#

so how to fix

tacit pasture
#

you have ⁨new BuildAction(new BuildAction(⁩ like you dont need to nest it

obtuse orchid
#

i want to get the owner btw

#

real

#

wait tf

#

it works now

#

lmao

#

i didnt catch that

#

mb

#

now i just need to switch

#

k im cooking

#

so

#

with this owner thing

#

does it make it so

#

only the owner of the unit

#

will trigger the placement of the improvement

#

if it is

#

wait

#

hold on

#

so

#

if its in enemy territory

tacit pasture
#

no it means that the improvement's builder is the ⁨owner⁩ id

obtuse orchid
#

will it still place improvement

obtuse orchid
#

if it is done

#

in their territory

tacit pasture
#

idk

obtuse orchid
#

rip

tacit pasture
#

lol i mean you gotta test these or read the code

obtuse orchid
#

will it work in pass and play so i can check? ik pass and play is buggy af

tacit pasture
#

but i dont know off the top of my head

obtuse orchid
#

k well im gonna try it

#

so i think after this i just need to do transform, vampire castle connecting to capital, and vampiric aura

#

and all the stuff related to bat swarms

#

and also reducing movement of bat on water

#

and also increasing movement of bat when leech triggers but i can just apply effect speedy

#

holy aura

#

no errors

#

sanginir production is hella high today

#

i got frenzy AND feast done in like 20 minutes

#

also

#

i also have to do sacrifice

#

and i know it has 2 parts, one to heal, and one to check if it is possible

#

and the one to check if it is possible is what i will be using for vampiric aura cuz u can track neighbours with it

#

and bat summoner

#

frenzy is a go

tacit pasture
obtuse orchid
#

hunger on the other hand does not work

#

it does not increase pop of city

tacit pasture
#

welcome to the vast world of polyscriptin'

obtuse orchid
#

the vast world that wont let me build improvements upon killing a unit

tacit pasture
#

it lets you it is just stubborn

obtuse orchid
#

wait i put the wrong tech for its unlock

#

yeah so um dont ever listen when i speak ever again

#

wait it spawned improvement

#

im locked in

#

SHIT IT GAVE POP TO ENEMY CITY

#

STOIP BRO I BEG

tacit pasture
obtuse orchid
#

ok wait

tacit pasture
#

(you can check if you are currently inside your own territory)

obtuse orchid
#

fapingvin im locked in

#

but i had already given 3 pop to aquarion city... is it too late

tacit pasture
#

its aquarion they aint gonna suddenly become op just cause of 3 free population

obtuse orchid
#

real

#

its a level 1 city

#

most they get is an explorer (they dont pick workshop lol)

tacit pasture
#

i think they pick purely randomly (yes even in newest of versions)

tacit pasture
obtuse orchid
#

WOW IT WORKS

obtuse orchid
tacit pasture
#

🔥

obtuse orchid
#

you guys are balance testing for me

#

but keep in mind i just did remove leech increasing attack

#

also im tempted to remove vampiric aura just cuz it would be a headache

#

or would it

tacit pasture
#

what is it

obtuse orchid
#

i think next i want to make sacrifice tho its a big part of the tribe's roots

obtuse orchid
#

shit

#

so

#

my strat didnt work

#

enemy city still gains pop

tacit pasture
#

show code

obtuse orchid
tacit pasture
#

i mean wdym this will only build it in your territory

obtuse orchid
#

wait

#

hmmm

#

it builds it on the tile of the unit defeated

#

vamp here just killed unit on the water and improvement spawned there

#

but thats a non issue ngl

#

should i change workshop sprite for sanginir

tacit pasture
#

if you can ig go ahead

obtuse orchid
#

thats why

#

well

#

i built

tacit pasture
#

i mean not all sprites are replaceable iirc yet

obtuse orchid
#

but didnt grab the new dll

obtuse orchid
tacit pasture
#

also it is best to start new games after new dll (it will still apply but might sometimes break if you change something like that) imo

obtuse orchid
#

i was mostly just wondering if i could

tacit pasture
#

idk

obtuse orchid
#

but it messes with the vibe of the city

#

same with oarj

#

park

tacit pasture
#

but if you cant you can replace it with polyscripts for sure

obtuse orchid
#

AHA

#

no spawning in enemy territory

#

also frenzy only works if it kills the other unit

#

cuz then ur unit takes damage immediately

#

so i'll change the tooltip

#

wait tf

#

it was already on unit kill

#

holy aura

#

i predicted this would be a thing lmao

#

unintended success

#

you get invited to a party
the people at the party:

#

OHOHO HUNGER WORKS AND I MADE IT ALL BY MYSELF

#

klipi would be proud

#

(he wouldnt)

tacit pasture
#

btw i think you can just simply replace workshop image

#

i see no reason why it wouldnt work

obtuse orchid
#

tried to copy and paste old sacrifice code and it didnt work, rip

#

might as well start from scratch but idk how neighbours work

#

i'll need to learn if i plan on keeping vampiric aura in the game tho

tacit pasture
#

bro when there is an error why dont you post whole image? 😭

obtuse orchid
#

i dont quite understand how this works

tacit pasture
#

i have no recollection of how i wrote sacrifice code 1 year ago

tacit pasture
#

and dont want to mine it up from my archives

obtuse orchid
tacit pasture
#

dnspy cooked with that decompilation

⁨```
bool flag = !__result;
if(!flag)

😭😭😭
obtuse orchid
#

double negative lol

tacit pasture
#

so just ⁨if(__result)

#

got it

obtuse orchid
#

thats not the issue

#

btw

tacit pasture
#

ok havent read whole thing yet

obtuse orchid
tacit pasture
#

i am a slow reader

obtuse orchid
#

mb

obtuse orchid
#

ok wait

#

i understand how the neighbour thing works, if we disregard the error

#

and i can use

#

this

#

it gets a list of tile neighbours

#

and

#

goes through them 1 by 1

#

and checks for requirement

tacit pasture
#

yes

#

hover over error

obtuse orchid
tacit pasture
#

ok aosdfaspdoichasv

#

so it is decompilation issue

#

cause i am pretty sure

#

i used foreach

obtuse orchid
#

only issue is actually adding leech and ensuring it actually works

tacit pasture
#

so to fix it

#

there is a special type of cycle in c# that replaces ⁨for(int i=0;i<n; i++)

if we want to cycle through a list we can use

foreach(var item in List_of_items){ code based on item

so you can cycle through a list like this.

You can use
foreach(var tile in gameState.Map.GetTileNeighbors(tile.coordinates)
which is very likely what i did

#

but this is technically just a workaround

obtuse orchid
#

?

tacit pasture
#

the real issue is technically that .GetTileNeighbors returns an il2cpp list. Which is not the same as a systemlist. You will hate il2cpp from now on

obtuse orchid
#

ok

#

thats the issue

obtuse orchid
#

well i do but why are u explaining something

#

that isnt the issue

tacit pasture
#

because it solves it

obtuse orchid
#

oh

tacit pasture
#

but like in a workaround-y way, kinda feels cheating idk

I mean I did that probably years ago, and it compiles correctly, but does not decompile correctly when viewed through dnspy

obtuse orchid
#

yeah im so confused now

#

u broke i

tacit pasture
#

bro

#

let me explain

#

so

obtuse orchid
#

soryryryryry

tacit pasture
#

first, put var before tileneighbors and it will sole it. second, there are no longer tileneighbor[i], instead it is ⁨item⁩, The i-th indexed item is ⁨item⁩ cause that is foreach. Goes through each item in a list of items

#

i mean you can do it with a normal for cycle too

#

if you dont want foreach

#

cause i kinda lied earlier, as i misunderstood

#

basically both solutions work

#

you just have to put var before tileneighbors

#

so you can copy whole old sacrifice code and put var before, or you can do foreach

obtuse orchid
#

do i replace tilenightbors(i) with "item"

tacit pasture
#

no need

obtuse orchid
#

oh ok

#

mb

tacit pasture
#

cause you use for(i)

#

not foreach(item)

obtuse orchid
#

i understand

#

ok

tacit pasture
#

it is literally just a handy shortcut for cycling through a list

obtuse orchid
#

im gonna switch that name

tacit pasture
obtuse orchid
#

will it work is the question

tacit pasture
#

disbandunitaction gives back stars i believe

#

if you dont want that use KillUnitAction

obtuse orchid
#

wait

#

,false

#

should remove stars back

#

cuz

#

i put killunit there

#

and

tacit pasture
#

oh nevermind then

obtuse orchid
#

it became error

#

saying something about 3 arguments

#

the only difference is the 3rd argument

#

and

tacit pasture
#

idk, i don't know polytopia code by heart bruh

obtuse orchid
#

difference is

#

disband gives stars

#

kill doesnt

tacit pasture
#

nice

obtuse orchid
#

are these pro inferencing skills

#

also

#

i saw wasd do something similar

#

when he sent image of pactions

#

yeah so

#

not only does sacrifice not work

#

but

#

hunger is back to giving enemy cities pop

tacit pasture
obtuse orchid
#

rip

tacit pasture
#

did you build and stuff?

obtuse orchid
#

i did in fact

#

build and stuff

#

must be a "cansacrifice" issue for sacrifice

#

hunger idk

#

wait it only does it sometimes

#

i'd have to investigate

#

...wait

#

lmao thats goof

#

so

#

if ur unit

#

is in ur territory

#

and it hits a lower hp enemy unit but doesnt kill it

#

the pop goes to the enemy

#

not to you

tacit pasture
#

cause you check on the tile of the enemy? the unit's owner

#

and if unit destroys enemy it moves there

tacit pasture
#

what method are you patching?

#

it can be solved

obtuse orchid
tacit pasture
#

no i mean

obtuse orchid
#

so

tacit pasture
#

polytopia code

obtuse orchid
#

attackaction

#

i know

#

i was cheking

#

checking

#

wait

#

its cuz

#

cansacrifice

#

checks if i have the tribeability

tacit pasture
#

yes

obtuse orchid
#

lemme just remove that rq

tacit pasture
#

i believe i tied it to tribeability

obtuse orchid
#

yup

#

u did in fact do that

tacit pasture
#

which was unlocked in a tech

obtuse orchid
#

so if i just remove that

#

i should be fine

#

cuz it only triggers if the improvement is built

#

and improvement is manual discrete etc

tacit pasture
#

btw for attacker one, you can check if tile2.unit.owner is __instance.attacker

#

or something

#

idk

#

to check whether attacker moved onto the tile

#

or not

#

you can also check with battleresults but idk how to get those atm

obtuse orchid
#

tile1 is target, tile2 is attacker btw

tacit pasture
#

origin is a coordinate that is for sure

obtuse orchid
obtuse orchid
tacit pasture
#

basically

obtuse orchid
#

hmmmmm

tacit pasture
#

or check if origin tile is empty? actually i am not sure how that part works exactly

#

you gotta experiment

#

cause idk

obtuse orchid
#

ok so

#

umm

#

tf

#

ok i tried something

#

so the tileowner is the owner of the attacking unit, yours

#

wait that makes no sesnse

#

eflawkdpigjqwêkèhbq

#

nvm

#

ok so

#

if the owner of the tile

#

is the same

#

as the owner of the tile of the unit

#

then

#

it goes

#

which should work

#

but for some reason

#

it makes improvement on the attacked tile

#

wait i know why

#

tile.coordinates

#

should be tile2.coordinates

#

nvm

#

holy shit im cooking today

#

sacrifice can now always be used

#

aaaaa

#

ok so

#

i think i know why

#

i put the result as false if it is sacrifice improvement, but set it to true if it finds a unit without max hp

#

also nearly 6k messages wow

#

sanginir is #3 thread behind polib and my thread

#

AND IT WORKS

#

broooo this tribe is so fun

#

and these cities have so much aura

#

you can see the glowing red aura

#

k im done polyscripting for today

#

i acutally made great progress

#

actually*

#

fapingvin if you read this, thanks alot

tacit pasture
#

np and nice work

obtuse orchid
#

ty ty

tacit pasture
#

🤫

obtuse orchid
#

is this a reference to

#

HEY U DELETED THAT

#

I SAW THAT FAPINGVIN

tacit pasture
#

What

obtuse orchid
#

u said

tacit pasture
obtuse orchid
#

this

#

so i have 5 things i can get done

#

one is monuments

#

another is unit icons

#

another is bat swarm

#

another is ability icons

#

and another is vampire castle

obtuse orchid
#

@hasty zephyr @tacit pasture @versed whale i may have just created the most aura monument of all time

#

(its emperor's tomb)

versed whale
#

it is aura i can confirm

heady adder
#

pls @obtuse orchid why does your mod not work. do i need to unzip it ??

#

it's not even recognized by polymod

tacit pasture
#

This mod is currently under construction again to bring it to the newest version of polytopia

heady adder
#

Ah ok

#

Thanks faping vin

tacit pasture
#

np

#

bananique is still the one who makes it btw

heady adder
#

Ok

versed whale
#

u annexed the mod

obtuse orchid
#

also

#

i dont know if polymod works with .zip files

#

but to be safe either put it back as a .polymod (i dont know why you zipped it in the first plce) or extract it into a folder

obtuse orchid
tacit pasture
#

it looks realyl cool

obtuse orchid
#

ty fapingvin ❤️ ❤️

#

this mod is gonna be peak

#

my first tribe will become my best tribe

#

the only issue is the hardest parts are the only ones left

versed whale
obtuse orchid
#

oh

#

ok

obtuse orchid
#

oh

#

well the old version

#

doesnt work too well

#

so i dont recommend using it

#

until i upload the update + rework

#

which will be like a week depending on how available fapingvin is

heady adder
#

Is he called faping vin because he's a dude named vin that's always faping ?

tacit pasture
#

nope nope and nope

heady adder
#

Ponder on that

tacit pasture
#

i think my nickname is quite clear

#

Fa + Pingvin

robust turtle
#

Fapking

heady adder
tacit pasture
#

f

#

btw

#

#rules message

#

🥰

heady adder
#

i respected them

robust turtle
heady adder
#

you re tard

robust turtle
#

It's an upgrade

tacit pasture
#

ik

obtuse orchid
#

ok i hope to get

#

work done today

#

i want to do transformation but idk how it would work

#

tho i can poke in boat data and stuff

versed whale
#

upgrade? idk what you want

#

but boat stuff could also help

#

EmbarkAction maybe

#

or idk

#

what am i even saying ong

obtuse orchid
#

that turns any unit (unless specified otherwise)

#

into a certain other unit

#

however

#

the certain other unit

#

can change back

#

at any time

versed whale
#

uhh yeah embark

#

and disembark

#

ig

obtuse orchid
#

disembark is done when the unit hits land

#

or something

#

its not manual

versed whale
#

i think it can be no?

obtuse orchid
#

doubt

versed whale
#

idk check

obtuse orchid
#

i am

#

i have no clue how this works

#

it doesnt mention terrain type

#

idk how i would even turn unit back

#

and also

#

i cant make it the same as boats cuz then only one unit will be able to upgrade and i dont want to make 125912591 copies

obtuse orchid
#

tile.SetUnit(passengerUnit);

#

lemme cook

#

later

tacit pasture
#

Wait

#

Oh nevermind

obtuse orchid
#

if i understand correctly

#

then

#

i turn it into a unit with carry

#

then an ability (manual discrete improvement btw)

#

sets the tile unit back to the passenger unit

#

this would work right

tacit pasture
#

Idk gn ancientshocked

#

I'm very tired today

obtuse orchid
#

ok

#

gn

obtuse orchid
#

yeah so i have no clue how i would even attempt to do this

obtuse orchid
#

how do i detect when a manual improvement is used

#

idk what method to patch either

#

i doubt it would be embark

versed whale
#

execute

obtuse orchid
#

hmmm

#

so

#

that means

#

i can put it in the leech code too

#

wait no

#

but i can put it in the sacrifice code

#

wait this is useful

#

UnitState unitState = ActionUtils.TrainUnit(gameState, playerState, tile, unitData);

#

k im locked in

obtuse orchid
#

with buildaction method

#

i need something else

obtuse orchid
versed whale
obtuse orchid
#

i cant use a unit that uses "upgradesFrom" because thats only one unit

obtuse orchid
# versed whale whats the other 3

which method would i need to turn a unit into another unit like the embark but it can also detect when a discrete improvement is activated

versed whale
#

what

#

dude

#

my guess is

#

just patch

#

buildaction

#

and like call embarkaction or idfk what

obtuse orchid
versed whale
#

tile.unit

tacit pasture
#

with nullchecks ofc

#

(idk what the convo is about smiling just saw tile.unit)

versed whale
#

gameState.Map.GetTile(__instance.WorldCoordinates).unit

versed whale
obtuse orchid
#

mb

obtuse orchid
#

instance.Coordinates works tho

versed whale
#

ok then coordinates

obtuse orchid
#

yes

versed whale
#

do keep in mind i say these things from memory so idk details

obtuse orchid
#

im trying to get the embark details and stuff cuz thats what i'll be using but

versed whale
#

its usually WorldCoordinates, Coordinates, or if multiple: Origin, Target

obtuse orchid
#

the issue is

#

wait

#

nvm

versed whale
#

bro cant you just call the action?

obtuse orchid
#

yes wait

#

stop

#

unitdata doesnt work, and i tried putting "unitData" and "unitState" at the start

#

state.GameLogicData.TryGetData(type, out unitData);

#

this is what code uses

#

the polytopia code

versed whale
#

um

obtuse orchid
#

wait

#

hmmm

#

no

versed whale
#

what

obtuse orchid
#

thats not a variable

#

thats why

versed whale
#

yeah

obtuse orchid
#

nvm

#

that didnt fix shit

versed whale
#

send entire code

#

good practice

#

i mean

#

method

tacit pasture
#

or the errors that vs code shows

versed whale
#

the entire method

tacit pasture
#

i mean they are pretty descriptive

obtuse orchid
versed whale
#

i'd appreciate a screenshot pookie

obtuse orchid
versed whale
#

thx

tacit pasture
#

bruh why is everyone using pookie?

obtuse orchid
#

🏳️‍🌈 ?

tacit pasture
#

idk what that even means

#

(the word not the flag)

versed whale
#

its kinda flirty, idk

obtuse orchid
#

im telling yall

#

i need a diff method

#

cuz build action has nothing to do with units

versed whale
#

no u dont

obtuse orchid
#

🙏

#

💔

versed whale
#

lemme finish

obtuse orchid
#

its over guys

versed whale
#

no

#

stfu

#

lemme finish

#

so

#

ok replace type with unit.type

#

and between UnitState unit... and gameState.GameLogicData... put this: ```cs
if (unit == null) return;

#

and for unitdata just place "var" between out and unitData

#

more in depth: what we do here is make sure our input actually exists, and we dont just make it up from nothing, and we also check if unit is null so the game doesnt crash and we dont get that lovely null error! we also put var there so we tell c# that unitData is a variable

obtuse orchid
#

hmmmm

#

ok so that works

#

but here i need to get playerstate

#

im trying to make a variable

#

but this doesnt work

#

wait

#

nvm

#

i got this

#

im locked in

#

i sure hope this works ngl

versed whale
#

also

#

something better

#

is to use

obtuse orchid
versed whale
#

gameState.ActionStack.Add( new TrainUnitAction(<fill out>) )

obtuse orchid
#

actually i prob can

#

ok i need to find something else

#

wait i understand

obtuse orchid
#

i need it for everything that comes after

obtuse orchid
#

ok i know the issue

#

the bat swarm isnt working cuz i never used the type (batswarm) from before

versed whale
#

idk

obtuse orchid
versed whale
#

like

#

unitState is not correct

#

also

#

those are not the correct params

obtuse orchid
#

yeah ok but i dont care cuz i got it working

#

now all i need to do is remove bat, dagger bat, and bat swarm from the list

#

:D

#

well not from list

#

but prevent them from using this

#

so i have a dilemma

#

wait nv,

#

nvm

versed whale
obtuse orchid
#

cuz i couldnt use transform at all with this

versed whale
#

thats interesting

#

it should work tho

#

idk dude im too tired honestly

obtuse orchid
#

so batswarm has a problem

#

as soon as the unit moves

#

boom

#

it transforms back

#

ok well this is a problem for later

versed whale
#

its not a bug its a feature 🔥

obtuse orchid
versed whale
#

but you could do some extremely destructive shit and just replace entire method using prefix just to put a single line of code in the middle or idk

obtuse orchid
#

idk

#

i'll do all that tomorrow

#

today im playing civ

#

i got transform working already so we chill (i didnt check if the special one for vampire worked)

versed whale
#

on paper blacklist should work

#

at least on internal version

obtuse orchid
#

this way, the bat swarm (it doesnt have leech) will not be transformable

#

and neither will the bat

#

only issue is vampire

#

but im thinking i can just whitelist the vampire

#

as a specific unit

#

idk if that works

versed whale
#

oh wait

#

i think i know the issue

obtuse orchid
versed whale
#

no

#

its my dumbahh

obtuse orchid
#

this is the date i got the last one

#

5 days ago

versed whale
#

no its not working on paper

#

im stupid

obtuse orchid
#

rip

versed whale
#

so like it defaults to anything that isnt in the list is false

#

which is ok from whitelist perspective but not from blacklist

#

bc i only used whitelist i never realized

obtuse orchid
#

lol

obtuse orchid
#

ok so

#

i want to hopefully

#

get some stuff done on this tribe

#

to get transformation to work i need polib update, right wasd?

versed whale
#

ig

versed whale
#

wait @obtuse orchid i literally forgot to push

#

the changes

#

oops

obtuse orchid
#

yeah so i cant use transform at all

#

rip