[ home / bans / all ] [ amv / jp ] [ maho ] [ f / ec ] [ qa / b / poll ] [ tv / bann ] [ toggle-new ]

/maho/ - Magical Circuitboards

Advanced technology is indistinguishable from magic

New Reply

Options
Comment
File
Whitelist Token
Spoiler
Password (For file deletion.)
Markup tags exist for bold, itallics, header, spoiler etc. as listed in " [options] > View Formatting "



[Return] [Bottom] [Catalog]

File:pdUtKUu.jpeg (12.95 KB,434x203)

 No.5689

I'm trying to add new characters to my gikopoi instance, but I couldn't it out, so I'm asking here. This is the software that I'm using: https://github.com/153/gikopoi3.

The first thing I tried was adding a new directory in the static/characters directory and naming it after the character I want to add with the .png files for that in there. Then I grep'ed through the source code to see where it loads the characters from. I tried it with "yume" in order to search for the Yumme Nikki character.


$ grep -r yume .
grep: ./.git/index: binary file matches
./static/scripts/character.js: yume: new Character("yume", "png", false),
./build/index.js: || characterId == "yume"
./index.ts: || characterId == "yume"


Eventually I went through the source code and added in both the static/scripts/character.js and the index.ts the character as all the characters are there.It does create a new slot, like you can see, but it doesn't load at all. It's stuck on the login page and doesn't continue to the actual game. It worked neither on the my server nor when I tested it on my computer as localhost.

Are tehre any people, who set up gikopoi before, and know how to do that?

 No.5690

>>5689
Are they set up like database entries or are they programmed in? I guess I would have to look at the code to see what to do

 No.5691

>>5690
It is programmed in, as far as I can tell.
The relevant segment in the static/scripts/character.js looks like this


export const characters = {
// original characters
giko: new Character("giko", "svg", false),
shii: new Character("shii", "svg", false),
naito: new Character("naito", "svg", false),
giko_hat: new Character("giko_hat", "svg", false),
...
...
}


and the relevant segment in the index.ts looks like this:

async function getCharacterImages(crisp: boolean)
{
const characterIds = await readdir("static/characters")

const output: { [characterId: string]: CharacterSvgDto} = {}
for (const characterId of characterIds)
{
const extension = (
characterId == "funkynaito"
|| characterId == "molgiko"
|| characterId == "shii_islam"
|| characterId == "giko_cop"
|| characterId == "giko_batman"
|| characterId == "giko_hungover"
...
...

 No.5693

Yeah I think most of us have set up Gikopoipoi instances before. Best bet is asking iccanobif for help, he loves helping the ecosystem grow

 No.5704

File:giko_loading.jpg (78.03 KB,1011x634)

>>5689
Upon reading this reply >>5693 I decided that I should try out the gikopoipoi software by iccanobif instead, which did wonders, it now loads almost instantly, however, it still doesn't display the character, neither in the game, nor in the login menu. I read through the commit log to see how iccanobif added characters in the previously and it seems like all he does is adding is the images in said folder and in a file called src/frontend/character.ts. I did the same and a new "slot" appears and you can play, but as you can see in the attached picture, it doesn't display my character.

https://github.com/iccanobif/gikopoi2/commit/2ab127a4bcfdc258947475f2cad9944ab46bc3dc

{ name: "shii_shintaisou", isHidden: false, portrait: { left: -0.46, top: 0.24 } },
{ name: "shii_toast", isHidden: false, portrait: { left: -0.46, top: 0.24 } },
{ name: "pumpkin_shobon", isHidden: !annualEvents.spooktober.isNow(), portrait: { left: -0.5, top: -0.2 } },
+ { name: "furoshiki_chotto", portrait: { left: -0.54, top: -0.34 } },

]

I was confused as gikopoi3 seems to have made significant changes over the gikopoi2, but it seems like gikopo2 is not lagging as much and is easier to work with.

 No.5707

I can't help you at all, but it's cool to see new giko stuff popping up and that it's a freely available software to begin with. Iccanobif is a cool guy and don't forget that Christmas and New Year's is coming up and that's a popular time to giko it up.




[Return] [Top] [Catalog] [Post a Reply]
Delete Post [ ]

[ home / bans / all ] [ amv / jp ] [ maho ] [ f / ec ] [ qa / b / poll ] [ tv / bann ] [ toggle-new ]