#Sanginir Tribe

1 messages · Page 5 of 1

tacit pasture
#

It goes through every command in-game which is very inconsistent

obtuse orchid
#

what

tacit pasture
#

Tho atm idk how else to implement it since the problem is that while we are getting the unit attack, we don't know if it's in a fight or not, and thus can't really compare it to the fightee

obtuse orchid
#

idk what u mean by that

tacit pasture
#

Another probably better solution is to patch one of the BattleHelpers. I can help with this tomorrow

#

Since neither is easy task

#

Nor to explain

#

Not tomorrow, day after tomorrow

obtuse orchid
#

oh

#

ok

#

rip

#

might as well play with the buggy version until then 🎉

#

i have this until then

#

should work i think

#

maybe

#

perhaps

#

who knows

#

wait the tech isnt feast

#

lemme fix that

tacit pasture
#

Also are you getting these from a dll?

obtuse orchid
#

from dnspy

tacit pasture
#

Cause there are an awful lot of flags

#

Yea

obtuse orchid
#

i removed the flags

#

i dont like them

#

they bother me

tacit pasture
#

While compiling and decompiling somewhere c# replaces all statements in if-s to flags

#

So not all were made by me

obtuse orchid
#

oh

#

i see

#

its fine

#

i removed them

tacit pasture
#

And also local variables dont save their name

obtuse orchid
#

i can also do empowerment hehe

#

i think

#

maybe

tacit pasture
#

I probably have the og source code somewhere

obtuse orchid
#

(it gives +0.5 attack permanently to bats and vampires)

tacit pasture
#

Should be relatively easy

obtuse orchid
#

yep

#

copy conquistor code

tacit pasture
#

Just tell me the general approach

obtuse orchid
#

but check for unit type

tacit pasture
#

How you would do it

obtuse orchid
#

dont check for terrain type

#

boom

#

finished

tacit pasture
#

Ye

obtuse orchid
#

so instead of checking for terraintype i check for unittype

#

i specify batsgn and vampiresgn

tacit pasture
#

Yes seems legit

obtuse orchid
tacit pasture
#

Rename state here to gameState

#

See

#

Uh

obtuse orchid
#

rip

#

why

#

?

tacit pasture
#

So the reason it is sometimes state and sometimes gameState is

obtuse orchid
#

did i have to rename then

#

but not now

tacit pasture
#

idk, it is just inconsistent coding

tacit pasture
obtuse orchid
#

oh ok

tacit pasture
#

And harmony expects exact names

obtuse orchid
#

50/50

#

gambling 🤑

tacit pasture
#

You can check a current method's parameters by either checking dnspy which might be outdated in that sense especially, or you start typing that method somewhere in vs code and see what that little tip/autocomplete says the parameter name is

#

Like if I am patching PClass.PMethod(GameState ???) i do this temporary checking

PClass pclass;
pclass.PMethod( 

And when you start typing there vs code tells you the parameter names

#

Fun fact, polyscript mods usually break cause polytopia devs literally renamed a few parameters

obtuse orchid
#

damn

#

yeah so my units have 0 attack

#

it happens every time

#

i change attack value

#

happened with conquistor too

tacit pasture
#

Didn't you have this with conquistor?

#

Idk how you fixed it

obtuse orchid
#

yes

#

i fixed it by fixing a typo with tech unlock

#

but thats not the case here

#

theres no typo

tacit pasture
#

Screenshot code

#

Don't send in txt im on mobile

obtuse orchid
tacit pasture
#

Uh

#

To clarify what is leechbuff

#

Like gameplay

obtuse orchid
#

leechbuff is the attack increase on units with leech

#

like when a leech unit

#

attacks another unit with less hp than it

#

it gains +1 attack

#

vampirism increases it to +1.5 attack

tacit pasture
#

Ok so clear this whole patch and copy the one from conquistor not from og sanginir

obtuse orchid
#

what

#

why

#

huh

tacit pasture
#

Cause all that commandbase bullshit is related to checking whether the unit is in an attack rn

obtuse orchid
#

oh ok

tacit pasture
#

Like

#

And then u can compare attacker amd attackee

#

But no need to do that here

#

Just simply increase attack as you did with conquistor

#

And it applies against everyone

obtuse orchid
#

k

#

how do i get

#

the unit

#

that the leech unit is attacking

#

to check if its lower hp then

tacit pasture
#

See that is the difficult part

#

And what that monstrosity tries to achieve

#

Like in GetAttack

#

From other methods it is probably easier

#

There are ideas i have

#

But sadly i wont be at my laptop for until the day after tomorrow

obtuse orchid
#

ok

#

i mean aside from that

#

(i had the old code below)

tacit pasture
#

There is no instance and no other unit

#

Just start from conquistor and not from my old code

obtuse orchid
tacit pasture
#

Cause they serve two very different purpose despite patching the same method

obtuse orchid
#

then how tf does one tell if the target has less hp than the attacker

#

if u cant even

#

get

#

the attacker

tacit pasture
#

Aren't you doing just the simple leech attack buff?

obtuse orchid
#

yes

#

leech triggers

#

when the attacker with leech

#

attacks

tacit pasture
#

Ohh

obtuse orchid
#

an enemy unit

#

with lower hp

#

than it

tacit pasture
#

Okay i get it now

obtuse orchid
#

maybe i should rename it to "leechattackincrease" like it was

#

because

#

ijust realized

#

u mightve had it confused

#

with the permanent +0.5 attack increase on bats and vampires

#

even tho its not related to leech at all i can see how u made that mistake

tacit pasture
#

I have an idea on how to do it but it would require patching another method with prefixpostfix which is pretty complex id say, I can explain in 2 days

#

Until then yeah you can do simpler ones like permanent attack increase

obtuse orchid
#

saving it for later pffft

#

how does one check for unittyoe

#

type

#

actually i can search that myself

tacit pasture
#

Uh you can also do /* large chunk of code */
To comment out

obtuse orchid
#

oh

#

rip

tacit pasture
#

Doesn't matter tho

#

Lol

#

Two curly brackets in the picture arw no commented out btw

obtuse orchid
#

i fixed that

obtuse orchid
#

aaa

#

idk

#

GOD DAMN THAT BOT CAN COOK

#

except for the fact that the attack doesnt actually increase

#

mhmmm

#

wait

#

idk

#

rip

tacit pasture
#

It looks good tho

obtuse orchid
#

rip

tacit pasture
#

Are you 100% sure you didn't misspell anything?

#

And that you replaced the dll, and that it loaded in?

obtuse orchid
#

yes

tacit pasture
#

These are dumb questions but I oftentimes forget to look at these

obtuse orchid
#

im gonna try the bot's replacement lol

#

even tho it doesnt know that i didnt typo the names

tacit pasture
#

It didn't really change much on the code as i read

#

Idk im a bit tired so maybe

obtuse orchid
#

go to sleep

#

lmao the clanker's code was wrong

#

actually maybe it does work but just doesnt show in the ui which sucks

#

no thats not the case

obtuse orchid
#

i think i found a solution by checking the tile of the selected unit and getting that unit and if it works dont question it

#

conquistor did it and it worked btw

#

guys iy didnt work

obtuse orchid
#

fapingvin when you wake up if its not too much trouble can you help me find out why this doesnt work, the ai hasnt been very helpful and i cant see anything wrong

versed whale
#

this is what we usually do when we say maintenance

obtuse orchid
#

so um

#

can i get hlep

#

pls

#

idk whats wrong

obtuse orchid
#

@tacit pasture hi pls help me idk what i did wrong but something isnt working it sucks aaa

versed whale
#

@obtuse orchid pls post screenshot im from fone

#

also any error messages?

#

or like whats not working

obtuse orchid
#

no

obtuse orchid
obtuse orchid
#

@versed whale

#

why did everyone die

#

why

tacit pasture
#

im here

obtuse orchid
#

hi fapingvin

tacit pasture
#

so

obtuse orchid
#

i require what is known as assistance

#

it doesnt do anything

#

the code

#

it looks fine but it isnt

tacit pasture
#

let me see

#

huh

#

okay so do you have modLogger?

#

if not just put this in your Main class public static ManualLogSource modLogger;

obtuse orchid
#

al l this

tacit pasture
#

okay, but uh that won't make the logger visible elsewhere only in load method

#

idk why polyscripttemplate does that btw, but not important

obtuse orchid
#

oh

#

mb

tacit pasture
#

so we are going to use the method of debugging by logging cause i dont see any issues with the code rn

#

but with logging we can get very useful info

obtuse orchid
#

k

#

quick question

tacit pasture
#

ok

obtuse orchid
tacit pasture
#

use modlogger not logger

#

in other methods

#

logger only exists in Load()

obtuse orchid
#

u mean like this

tacit pasture
#

yes but ofc put it inside the method

obtuse orchid
#

wait

#

wtf lol

#

mb

#

ok

#

i got this

tacit pasture
#

put a log after every single if

#

and different logs ofc

#

like test1, test2 etc

obtuse orchid
tacit pasture
#

uh

#

the no vampirism logger is outside of if gate

obtuse orchid
#

true

tacit pasture
#

the curly brackets define the region that the if is bound to

obtuse orchid
#

I KNOW FAPINGVIN

#

it was a mistake

tacit pasture
#

ok well never hurts to tell :)

obtuse orchid
#

the first one doesnt even show

tacit pasture
#

the it loaded here?

obtuse orchid
#

yeah

#

its not there

#

are my parameters wrong? that cant be right

tacit pasture
#

in logoutput

#

ok share logoutput either here or in dms

obtuse orchid
obtuse orchid
tacit pasture
#

or search for error

obtuse orchid
#

also this

tacit pasture
#

there might have been a loading error

obtuse orchid
#

no error

#

that i can see

tacit pasture
#

cntrl f "error" no results?

obtuse orchid
#

i mean theres this

#

but thats always been there

tacit pasture
#

yeah ignore that

#

okay, so the log not showing up could mean various things:

  • The patched method itself does not execute
  • The patched method executes but harmony patching is at fault
  • The dll was not correctly built/copied/loaded

So the first one with this specific method is kinda impossible, since we have patched this in past
Second one, harmony would show an error i am pretty sure, it is quite intelligent in that sense
Third one, sometimes vs code just- refuses to build lmao. I usually have this thinking it built and copy the previous version dll

#

or

#

actually

#

no or, cause you do have CreateAndPatchAll

obtuse orchid
#

this one is in italics for some reason

#

in dnspy

#

also it did build

tacit pasture
#

if there is no error showing up in log files, is there exception, or something

obtuse orchid
#

no

#

wait.

#

i know

#

nvm

#

i do not know

#

here's the thing tho

#

dnspy builds the wrong harmony patch thing, it should be ⁨[HarmonyPatch(typeof(UnitDataExtensions), nameof(UnitDataExtensions.GetAttack), typeof(UnitState), typeof(GameState))]
but this is what it says

#

its goofy

tacit pasture
#

nah that is okay they mean same stuff

tacit pasture
obtuse orchid
#

i may need to ask klipi

tacit pasture
#

issue is probably something obvious i am not seeing

obtuse orchid
#

the only difference between this one and conquistor is that

#

conquistor doesnt check for specific unit type, it could be that

#

but also

#

conquistor gets the specific tile and the unit on it

#

this one does not

tacit pasture
#

are you absolutely sure there are no errors in the logs?

obtuse orchid
#

yes

#

i am

#

100%

#

sure

#

there is only the one u said ignore

#

is anything wrong here

tacit pasture
#

i dont think so

#

idk

#

can you copy paste the method here

#

whole thing

obtuse orchid
#

[HarmonyPostfix] [HarmonyPatch(typeof(UnitDataExtensions), nameof(UnitDataExtensions.GetAttack), typeof(UnitState), typeof(GameState))] public static void Empowerment(this UnitState unitState, GameState gameState, ref int __result) { modLogger.LogMessage("it loaded here"); var success = gameState.TryGetPlayer(unitState.owner, out PlayerState player); if(success) { modLogger.LogMessage("it was a success"); if(player.HasTech(EnumCache<TechData.Type>.GetType("vampirismsgn"))) { modLogger.LogMessage("no vampirism?"); if(unitState.type == EnumCache<UnitData.Type>.GetType("batsgn")||unitState.type == EnumCache<UnitData.Type>.GetType("vampiresgn")) { modLogger.LogMessage("yeah so it simply doesnt wanna add then huh"); __result = __result + 50; } } } }

tacit pasture
#

oh sorry didnt notice

#

well

#

idk

obtuse orchid
#

😭

#

its all over

#

polyscript hates my guys

#

guts

obtuse orchid
#

ok so all my units simply have no more attack value

#

thats really fun

#

really really fun

#

yippee

sour beacon
#

context

obtuse orchid
#

that when a tech is researched

#

the units of the type gain +0.5 attack

#

but they dont get attack increased

#

and all my units now have 0 attack

#

also

#

none of the logger things show up

sour beacon
#

wdym by 0 atk

#

why u have this

#

bnro

obtuse orchid
sour beacon
#

bro

#

remove this

#

first

obtuse orchid
#

remove what???

sour beacon
#

you override

tacit pasture
#

this

obtuse orchid
#

oh

sour beacon
#

i think i did that one time

#

and couldnt figure out

obtuse orchid
#

idk man i was just copying and pasting

sour beacon
#

why ts wasnt working

#

but idk if it gonnae do much

obtuse orchid
tacit pasture
#

this is ignored by harmony afaik

sour beacon
#

ok try

#

remove this

#

idk

obtuse orchid
#

(warrior shoudlnt even be affected)

obtuse orchid
#

ty

sour beacon
#

if persists

#

i'll check

obtuse orchid
#

yeah so it didnt do anything

#

is it a nameof/typeof issue?

obtuse orchid
#

so the logger isnt logging

#

at all

#

wait wtf

#

so

#

leech doesnt work anymore now either

#

i hate polyscript so much

tacit pasture
#

Bro something is wrong with the mod itself then

obtuse orchid
#

idfk what

tacit pasture
#

Does the logger in Load method execute

obtuse orchid
#

but

#

not the ones i put

#

in the methods

#

like i put one in leech

#

now leech isnt leeching anymore

#

and the logger isnt logging

tacit pasture
#

Harmony patches are not executed then

#

For some reason

obtuse orchid
#

i looked at comnquistor "harmonycreateandpatchall"

#

and there is a ", null" after it

#

idk if thats important but im trying it

#

that didnt do anything

#

well at least nobuild still works

versed whale
#

@obtuse orchid try to send code frequently

#

like i would help you but i dont know what ur code looks like

obtuse orchid
#

are u on mobile

#

also i think the leech not working

#

wait no

versed whale
obtuse orchid
#

leech doesnt work and neither does empowerment when i activate it

#

like when i remove it from comment

versed whale
#

bro do i really gotta download this

obtuse orchid
#

it makes all attack 0

obtuse orchid
versed whale
#

ok so ur brackets are fucked up

versed whale
#

yk

#

anyways

#

also

#

wtf was that null thing in createAndPatchAll

obtuse orchid
#

the code didnt work before i added it in

#

it didnt change anything tho

#

so

versed whale
versed whale
obtuse orchid
#

guess what still doesnt work 🎉

#

wait

#

leech works again

#

nice

#

@versed whale idk how changing the logger did anything but everything seems to work

#

let me get vampirism to test

#

ok so empowerment still doesnt work

#

so somehow

#

something here is wrong

#

|| does mean "or" right

tacit pasture
#

Yes

#

But if logger executes

#

Then the other one as well

obtuse orchid
#

it didnt tho

tacit pasture
#

Try adding like 9999

obtuse orchid
#

it must be adding 50 to something else

#

or nothing at all

tacit pasture
#

Also you can use += to replace = same + something

#

A = A + 1
Is equivalent to
A += 1

obtuse orchid
#

ok

versed whale
obtuse orchid
#

what

#

which ones

#

dawg

versed whale
#

you had your leech for example outside of the Main class

obtuse orchid
#

rip

#

its over guys

#

i cant even do brackets 💔

#

ok i tried adding 500 to the attack just to see

versed whale
obtuse orchid
#

it neither shows up in the ui

#

or deals extra damage

versed whale
#

huh

#

thats weird

tacit pasture
#

Is getAttack int?

versed whale
#

but the last logger message shows up?

versed whale
tacit pasture
#

Cause you can have not int attack no?

obtuse orchid
#

idk

versed whale
tacit pasture
#

Oh wait it gets divided

#

Yea

versed whale
#

bruuuh

obtuse orchid
tacit pasture
#

Lol i forgor

versed whale
#

best non polymod team polyscripter right here

obtuse orchid
#

it being divided isnt an issue cuz conquistor only adds 50

tacit pasture
#

I was like "i heard of .5 attack it must not be int then"

obtuse orchid
#

hmm

versed whale
#

ok try

#

uhh

#

1 sec

tacit pasture
#

It passed

versed whale
#

⁨```cs
[HarmonyPostfix]
[HarmonyPatch(typeof(UnitDataExtensions), nameof(UnitDataExtensions.GetAttack), typeof(UnitState), typeof(GameState))]
public static void EmpowermentAndLeech(this UnitState unitState, GameState gameState, ref int __result)
{
modLogger.LogMessage("it loaded here");
var success = gameState.TryGetPlayer(unitState.owner, out PlayerState player);
if(success) {
modLogger.LogMessage("it was a success");
if(player.HasTech(EnumCache<TechData.Type>.GetType("vampirismsgn")))
{
modLogger.LogMessage("no vampirism?");
if(unitState.type == EnumCache<UnitData.Type>.GetType("batsgn")||unitState.type == EnumCache<UnitData.Type>.GetType("vampiresgn"))
{
modLogger.LogMessage("yeah so it simply doesnt wanna add then huh");
__result += 50;
}
}
}

    TileData tile = gameState.Map.GetTile(unitState.coordinates);
    TileData tile2 = gameState.Map.GetTile(__instance.Target);
    var success = gameState.TryGetPlayer(unitState.owner, out PlayerState player);
    if (success)
    {
        if (tile.unit != null && tile2.unit != null)
        {
            if (tile.unit.id == unitState.id && tile.unit.HasAbility(EnumCache<UnitAbility.Type>.GetType("leechsgn"), null) && tile2.unit.health < tile.unit.health)
            {
                __result = __result + 100;
                if (player.HasTech(EnumCache<TechData.Type>.GetType("vampirismsgn")))
                {
                    __result += 50;
                }
            }
        }
    }
}```⁩ idk
obtuse orchid
#

ok wtf is this

versed whale
#

just conjoining the 2 methods into 1

#

cuz they patch same shit

obtuse orchid
#

u are combining the leech attack increase and the empowerment attack increase?

versed whale
#

into 1 method, because they work by adding to __result they should not interfere with each other

#

basically less patches but same thing

obtuse orchid
#

the code i had there

#

in the comment

#

doesnt work

#

cuz

#

i am unable to get the target's hp

#

or somethig

versed whale
#

wdym

tacit pasture
#

Cause how would you

versed whale
#

unit.health

tacit pasture
#

Like in GetAttack

versed whale
#

oh wait

#

nvm

#

i get it

tacit pasture
#

There is no target

versed whale
#

but

#

wait what

obtuse orchid
#

yeah so its an attack command thing

#

leech attack increase only happens when the target has less hp than the attacker, with leech

#

empowerment is a passive buff

versed whale
#

oh ok

#

ok i get it now

#

then

tacit pasture
#

btw i promised i would find the method to patch for leech

versed whale
#

idk

versed whale
tacit pasture
#

yes

#

but

#

there is problem

versed whale
tacit pasture
#

which i encountered there before

versed whale
#

shiiiiiiiiiiitcooooooooooode

tacit pasture
#

well yeah

#

like it is gigantic method first of all

#

😖

#

and

#

in the end, damage is calculated

#

not attack

#

like get it

#

and how would you add to damage? if you don't know the formula

#

cause that could change

#

and is cringe

#

like hardcoding it

#

so

#

like in BattleHelpers attack damage is like starts here

#

like get attack

#

so basically in the middle of the method it gets unit attack

#

but

#

I think i can do it

#

i mean

#

i have an idea

#

prefixpostfix

obtuse orchid
#

would it be simpler to just remove empowerment completely

tacit pasture
tacit pasture
#

quite ingenious is you ask me @versed whale , but i only say that cause i thought of it

obtuse orchid
#

i know

#

but

#

it doesnt work

#

and thats more cringe

tacit pasture
#

there is like something tiny broken there once we fix it method is flawless

tacit pasture
#

we just cant see it

obtuse orchid
#

i think i was too ambitious with sanginir

tacit pasture
#

i mean getattack was patched many times before

#

so it must work

obtuse orchid
#

but as long as im not doing anything, i can start monuments

obtuse orchid
#

cuz i literally have like

#

four harder things than leech attack increase

versed whale
tacit pasture
obtuse orchid
#

5 maybe

tacit pasture
#

bro leech attack increase is not hard and your method should work, there is something technical going on i think

#

send over current code pls

obtuse orchid
obtuse orchid
# obtuse orchid 5 maybe
  1. ability that makes it when a unit with leech kills another unit inside ur borders, the city gains 1 pop
  2. ability that gives leech to units adjacent to a vampire, if they dont already have it
  3. ability that allows units to transform into another unit like a boat, but able to transform back at will instead of disembarking, and can also be done outside of ur own territory
  4. vampire castle connecting to capital from across the map without the trade route but if roads work a certain way this wouldnt be very hard
  5. maybe not hard but making it so a 0 attack unit (bat swarm, btw the unit transformed from #3 ) will gain the ability to attack
tacit pasture
#

and see for myself

obtuse orchid
#

lol

#

thats so real

#

i swear if its my pc issue im gonna blow up

versed whale
obtuse orchid
#

ok so its not that bad

#

let me go look at roads tho

#

cuz im thinking

#

if it works like if the roads are adjacent or network or something till it reaches ur capital, and then the result is true

#

i can just fix the result to true for the vampire castle

versed whale
#

nope thats not how it works im pretty sure

obtuse orchid
#

rip

tacit pasture
obtuse orchid
versed whale
#

huh???

tacit pasture
#

no i mean

#

i uh

#

was lazy

versed whale
tacit pasture
#

and just copied sanginir code into an existing mod of mine instead of making new polyscript project

versed whale
tacit pasture
#

and it all came crashing down

tacit pasture
#

idk

#

setting up a new polyscript project is sooooo time consuming

#

like there are two files

#

idk

#

yeah so i tested it and it worked

obtuse orchid
#

ETF

#

I AHTE THI(AKSRFAWI OIS^tç iwy 9p3;èWQ:T E

tacit pasture
#

i mean i stripped everything related to sanginir

#

so not all the test

#

basically

#

cause i didnt want to make a patch.json for this

#

and also disabled other two methods

#

can you send me over the patch

#

you have

#

cause i can test more extensively

obtuse orchid
tacit pasture
#

it literally works for me

obtuse orchid
#

BROOOOOOOOOOOOOOOOOOOOOOOOOOO

#

do u get ur dll from

tacit pasture
#

i changed absolutely nothing

obtuse orchid
#

obj > debug > net6.0 > dll is there

tacit pasture
#

yes

obtuse orchid
#

ri

#

asdg9ujq3-h4èi^koç3eĥip

tacit pasture
#

bro

#

check modified date

#

on dll

#

maybe

#

vs code didnt build

#

and you keep copying old something

obtuse orchid
#

no its a new one

tacit pasture
#

but yeah if no, then this is a compilation error

#

uh

#

wait

#

i think i know

obtuse orchid
#

am i on the wrong version of dotnet

obtuse orchid
#

am i on wrong version of polymod/polytopia

tacit pasture
#

uh send over .csproj file?

obtuse orchid
versed whale
tacit pasture
#

okay

#

i think i see issue now

obtuse orchid
#

its a skill issue

tacit pasture
#

just a sec

obtuse orchid
#

100%

tacit pasture
#

no

#

it is literally not on you but i got to test

#

a min

#

nevermind

versed whale
tacit pasture
#

but you should still disable nullable in .csproj file

versed whale
tacit pasture
#

idk

#

last resort

#

i mean

#

if csproj file and cs file is same

#

then how is it wrong?

#

vs code building perhaps

#

but

#

like

#

anyways, disable nullable cause that just causes issues

obtuse orchid
#

:(

tacit pasture
#

uh let me check some other stuff

#

idk i give up

obtuse orchid
#

aaaaaaaaaaaaaaaaaaaaaaa

#

im too bad for polyscript

#

i knew it

tacit pasture
#

nah

#

do you have latest version of dotnet?

obtuse orchid
#

then what can it possibly be

obtuse orchid
#

i have it on auto update

tacit pasture
#

dotnet --info

#

in terminal

#

ig

obtuse orchid
#

version 10.0.101

versed whale
#

banan change load log message and build and check if u see the change

obtuse orchid
#

ok

#

wtf

#

it actually

#

didnt change

tacit pasture
#

💀

obtuse orchid
#

skull2 ❓ ❓ ❓ ❓ ❓

tacit pasture
#

culprit found

obtuse orchid
#

so whats the culprit

#

dotnet not building right?

versed whale
obtuse orchid
#

how does one fix this

tacit pasture
#

uh literally start over, like a new project? this one has been clearly cursed by beelzebub

obtuse orchid
tacit pasture
#

and just copy code

#

cause it worked for me

#

when i copied code

#

and it worked for you in other project

#

with conquistor

obtuse orchid
#

i need permission from myself

#

ok well

#

i just went and deleted everthing inside pffft

#

ez

tacit pasture
#

💀

#

where are you working? in Sys32 folder???

obtuse orchid
#

no

#

fapingvin im very sorry but

#

it doesnt even work

#

WTF Ég.ehrlq

#

is it a pc issue

versed whale
#

ok send mod file to me in dms

#

like the whole thing

#

im not gonna run the dll ofc

#

i just wanna see if i can build

tacit pasture
#

maybe it is setup issue

obtuse orchid
#

ri

#

p

#

p

obtuse orchid
#

i thought i did all the steps

#

get the polyscript template, open as folder, do all the code in main.cs, build

tacit pasture
#

do it exactly like how you did with conquistor and document steps here maybe you missed something

versed whale
#

found it

obtuse orchid
#

:O

versed whale
#

i think

obtuse orchid
#

what is it wasd

#

pls

#

tell me

versed whale
#

imma send you the file back

#

unzip and delete the dll

#

cuz internet safety

obtuse orchid
#

whatd u change

versed whale
#

i renamed shit from polyscripttemplate

obtuse orchid
#

are we so deadass

tacit pasture
#

wait

#

was csproj's name

tacit pasture
versed whale
#

yes

tacit pasture
#

💀 and i didnt even notice

versed whale
#

polyscript

tacit pasture
#

nah ts aint polyscript

obtuse orchid
#

ok last time i tried to change polyscripttemplate name

#

it fucked up the mod

#

so i just renamed the dll after the mod was done

obtuse orchid
#

weg89qpiohjwr

#

mb

#

ok

versed whale
#

thats not how it works lmao

obtuse orchid
#

how much do you think i know

versed whale
#

we all start somewhere

#

i never had issues with this tho, weird

obtuse orchid
#

polyscript doesnt hate u forever

tacit pasture
#

solution file

#

delete that

#

when you rename

obtuse orchid
#

yippee yahoo guess what STILL DOESNT FUCKING WORK

tacit pasture
#

namespace

#

delete solution file

#

delete solution

#

and reopen vs code

#

like close project

#

close vs code, the nreopen everything

#

cause it needs to regenerate

versed whale
obtuse orchid
versed whale
#

if the latter then u missed something prob

#

huh

#

thats weird af

#

ok

#

remove .sln

obtuse orchid
#

ok um

#

wait

#

i found an issue

versed whale
#

great

tacit pasture
#

share?

obtuse orchid
#

there was prob an issue when i coped it

#

copied

#

to the mods folder

#

cuz i thought the folder would replace the other one

#

but they kinda merged and the new (or old idk) sanginir was inside the obj folder in the dbug folder etc etc

#

there was like a copy of the whole thing in there

#

it was weird

tacit pasture
#

wha just delete whole thing, and put there whatever wasd did ig atp, cause it can get messy with vs code loading in two Main.cs files for example

tacit pasture
obtuse orchid
#

nope still doesnt work

#

my pc is autistic

#

im so done

#

like it has to be me

#

if it works for u guys

#

without changing anything

#

so

#

yk

#

fun

#

how about u guys just finish the mod for me at this point im clearly incapable of doing anything

#

at that point why doesnt someone else just make all my mods and all my tribes

versed whale
#

can u send current mod?

#

in zip file

#

in dms

#

lemme check if u missed something

obtuse orchid
#

but ok

tacit pasture
tacit pasture
#

btw i had like 3 projects open today, whole day thinking about polytopia code and wrote exactly 0 new lines to any of them

obtuse orchid
#

my will to keep polytopia installed is being fried at this moment

tacit pasture
#

nah when ancients come in december everything is gonna be solved

#

cant wait for new terrain really

#

for mapmaker

#

only benefit of skins for me

#

💀

obtuse orchid
#

since polyscript is out of the question rn

#

im going to make the monuments

#

here is the first monument

#

im thinking replacing altar of peace with "sacrificial altar" which is unlocked when you sacrifice a set number of units

#

but if that takes too much polyscript i am not doing it

obtuse orchid
#

tower of wisdom

#

would yall be wise in this tower

#

oh no grand bazaar is next

humble girder
tacit pasture
obtuse orchid
#

know whats not cool

#

polyscript

#

:)

#

hmmm idk what to make the grand bazaar

tacit pasture
#

just believe us when we say we are close to figuring it out

#

i mean

#

if it worked with conquistor there must be a way for it to work with sanginir

#

but now i have to go sleep soon

obtuse orchid
#

sanginir peaked here

obtuse orchid
#

hmmm

#

wait

#

i just realized

#

u can only get the grand bazaar

#

from vampire castles

#

so maybe the grand bazaar can be something related to vampire castles

#

that isnt a vampire castle

tacit pasture
#

Lol that soon at #1362225960585400450 message never came

obtuse orchid
#

wait this is fire

#

(dont look at my attempts, dont listen to them, i beg you)

#

hmmm how does one design a grand bazaar for vampires

tacit pasture
tacit pasture
#

There is also monkemewapi one

obtuse orchid
#

shalone was an absolute chef for the rastrapies skins

tacit pasture
#

Monkewemapi maybe

obtuse orchid
#

rip shalone

#

the baby took his life

#

🪦

#

jk

#

he got a life is what happened

tacit pasture
#

Some day audio will be fixed and tribes will prosper again, you'd have quite a work to do then

obtuse orchid
#

last time i tried it sucked so bad i deleted all the files and emptied the recycling bim

#

bin

tacit pasture
#

Delete the bin tio, burn all the evidence

obtuse orchid
#

lol

tacit pasture
#

Personally I have several versions for toporzol and mica just waiting for the right moment

obtuse orchid
#

starting grand bazaar

#

once i make gate of power im going to put them here

versed whale
#

ok touhou has alot but still

#

but ye we need audio

#

mr klippy can we get a fix

obtuse orchid
#

do u guys remember this

tacit pasture
tacit pasture
obtuse orchid
#

perhaps after the mod jam

#

hopefully the next mod jam will be more popular

tacit pasture
#

There are more tribes now

obtuse orchid
#

i think collabs should be allowed for the next mod jam

#

cuz

#

all the new modders

#

that cant do everything

#

they can team up

#

one person does gld

#

one person does sprites

#

etc

#

it would be epic

hasty zephyr
obtuse orchid
#

why not just kidnap a few unsuspecting polytopians? it comes fresh and not lab-made

hasty zephyr
#

that's true, but killing a polytopian and trying to get it back out of the bazaar is difficult due to all the other vampires hiding in dark shadows that would try to mug you

#

I usually reserve fresh, natural blood for full grown plants and creatures in my garden since its harder to get

obtuse orchid
#

you must be a fake

#

in that case, dress yourself as a sanginir cultist

#

i will send you one of the gems

obtuse orchid
hasty zephyr
obtuse orchid
hasty zephyr
#

I mean maybe you havent seen them because they hide in the dark shadows

#

they also arent humanoid

sour beacon
versed whale
#

we just need actual good theme

versed whale
#

so like

#

@obtuse orchid

obtuse orchid
#

hi

versed whale
#

you cant build?

#

right?

obtuse orchid
#

the +0.5 attack simply doesnt get added

#

thats the issue

#

it does build succesfully

#

but the +0.5 attack doesnt work

#

when i had the logger in, all the messages showed

versed whale
#

ok imma see

obtuse orchid
#

even the one inside the bracket that increased attack by +0.5

#

soooooooooooooooooooooooooooo rip

#

ig

#

unless i keep it that way cuz as long as it works for everyone else its not really an issue

versed whale
#

oh craaash

#

lets see if its polib or polibrary

#

nope my tribe mod

#

oops

obtuse orchid
#

lol

versed whale
#

i renamed an ability but didnt use ctrl + h

tacit pasture
#

btw in code (so not json) there is rename symbol you can use after right clicking

#

and it renames it everywhere

versed whale
#

ik

#

the best alternative for that is ctrl + h

#

in json

versed whale
#

if you didnt know

tacit pasture
versed whale
tacit pasture
versed whale
obtuse orchid
versed whale
#

u run ⁨dotnet build Sanginir.csproj⁩ right?

obtuse orchid
#

um yes

#

i know how to build things

versed whale
#

brody idk what you are doing

obtuse orchid
#

mb

versed whale
#

wait what mods do you have

#

installed

#

right now

#

@obtuse orchid u alive?

obtuse orchid
versed whale
#

do u have latest polib

obtuse orchid
#

i have the one either you or fapingvin sent me in dms

versed whale
#

what

#

the what

#

@tacit pasture did you send polib to banan in dms?

#

or wha

#

cuz if so then why

#

cuz

obtuse orchid
versed whale
#

what fix

obtuse orchid
#

i dont remmeber

#

it was prob for conquistor or dramoix

versed whale
#

imma check git

obtuse orchid
#

ok i got latest polib

versed whale
#

great

#

try now

obtuse orchid
#

i am re-building sanginir.csproj just in case

#

btw how do i remove this in scout ship outline

versed whale
#

idfk

#

find sprite code

obtuse orchid
#

yeah im trying

#

this is what dnspy is showing

versed whale
#

ok what i need you to do

#

is

versed whale
#

ok

tacit pasture
#

I think

versed whale
#

@obtuse orchid are you comfortable with using non verified version of polibrary? my theory is that 2.1 still has effect code that somehow inteferes with unitdataextentions.getAttack

tacit pasture
#

That is just github link and i think since then there were updates

versed whale
#

but me and fap are on 2.1.1 (not yet released)

obtuse orchid
versed whale
#

something with load order could be up

tacit pasture
#

Isnt the issue confirmed to be some kind of build mistake?

versed whale
#

polibrary getting patched after sanginir and shit

obtuse orchid
#

cant i just get it from the github

versed whale
#

cuz current release is 2.1

#

we want 2.1.1, when i rewrote effects

obtuse orchid
#

heres the thing tho

#

i could simply just

#

not use polib?

versed whale
#

that too ig

#

but thats treason

obtuse orchid
#

k so nothing can move

versed whale
#

what

obtuse orchid
#
  • issue wasnt fixed
versed whale
#

wtf

obtuse orchid
#

bye bye polib

versed whale
#

genuinely

#

oh i have uncommited changes probably

obtuse orchid
#

i got it from here btw

versed whale
#

oh i have a lot

#

ye

obtuse orchid
#

lmao it was a polib issue

versed whale
#

yes ok

#

thats good

obtuse orchid
#

ok time to do leech attack increase

#

which idk how to do

#

cuz attack command shenanigans dont work

versed whale
#

@tacit pasture had an idea

#

basically

#

prefix patch attack action

#

give the unit a uniteffect

#

IF it has more hp than target

obtuse orchid
#

oh yeah

#

effect thing

versed whale
#

and then patch getAttack too

obtuse orchid
#

idk how to implement effects tho

versed whale
#

and check for that effect

versed whale