Deathend

Newbie
Nov 3, 2017
48
21
143
cant fix damaged clothes with the sewing kit, i have a set of gim clothes that is damaged but when i went to the sewing kit to fix them the needle icon to fix them is not interactable evne tough i have cloth and tailoring is at 59
 

themagiman

Well-Known Member
Mar 3, 2018
1,908
615
273
A coder will have to help you with that. I know gt is go to from a act, gs is used when you are sent to a "location" without a act. clr and cla are used to clear previous text and images, forget which is which, best to put in both honestly.

As for the image I believe so, but I am not sure how to do it. Same with your other questions. I am just a writer that knows some basic code from just working on the game for like 9 years.
Does the therapist writer have a roadmap posted? I just want to know if I'm stepping on his work that's all. If not, I'll keep on tinkering with this. If anyone has some ideas let me know because I'm still brainstorming.
 

Kevin Smarts

Engaged Member
Respected User
Game Developer
Jul 21, 2017
2,039
2,690
450
Do I need to change some base code of the game in order to use them or just use the <center><img <<$set_imgh>> src= tags to reference it if it was a jpg?

Another thing is I don't think I changed the therapist_reminder code but I got the following error when I built new code:

Location:therapist_reminder
Area:eek:n visit
Line:2
Code:112
Desc:[end] not found!

I take this as the end tag wasn't found on line 2 of the code but it doesn't make sense because it is a blank line. Or is it on line 112? I haven't debugged this before so any tips would help. All I've edited is the therapist location code.

Is there a way I can get visual studio to recognize the code? Right now it's treating it all like a txt file where the text is white and there's no logic.

Can other characters get pregnant? If so, how do I manage that?
The missing end is probably from a previous file but overrunning into that one. QSP reports the line its at when it gets confused not where the confusion might originate. There's a good chance you missed a colon in an if, elseif, end section so that it didn't end. This is by far teh most common mistake for QSP coding.
cant fix damaged clothes with the sewing kit, i have a set of gim clothes that is damaged but when i went to the sewing kit to fix them the needle icon to fix them is not interactable evne tough i have cloth and tailoring is at 59
So close, you need 60 skill to attempt a fix. There's always a chance it'll fail and the outfit will be ruined, you'll get feedback as to whether it worked or not.
 
  • Like
Reactions: themagiman

themagiman

Well-Known Member
Mar 3, 2018
1,908
615
273
The missing end is probably from a previous file but overrunning into that one. QSP reports the line its at when it gets confused not where the confusion might originate. There's a good chance you missed a colon in an if, elseif, end section so that it didn't end. This is by far teh most common mistake for QSP coding.
Totally correct. Is there a way I can set colors in visual studio for coding to qsp style? I just want something that makes it visually easier to see this than eyeball each character.

My two big questions right now are

I tried adding an act command to the "Visit the therapist (1:00)" so that you can have a dialog with some of the characters sitting in the waiting room for the therapist. The problem is this adds the act command I set to the options on the act panel not the screen itself. Do I need to make a new location for this?

Is it alright if I just start adding things to the code base for my mod or should certain things be respected? I'm tinkering with Anya but outside of that adding my own NPCs. I'm writing the code inside of the current files which should be a big no no but I don't know how to do it right.
 

Nutluck

Forum Fanatic
Game Developer
Nov 2, 2017
4,042
2,585
468
Does the therapist writer have a roadmap posted? I just want to know if I'm stepping on his work that's all. If not, I'll keep on tinkering with this. If anyone has some ideas let me know because I'm still brainstorming.
He mostly posts on discord, you can talk to him directly there. I honestly don't pay much attention to that story arc as it isn't something I would be personally interested in playing.
 

HoodedSilence

That which passes is forgotten.
Game Developer
Jan 18, 2023
375
272
187
Totally correct. Is there a way I can set colors in visual studio for coding to qsp style? I just want something that makes it visually easier to see this than eyeball each character.

My two big questions right now are

I tried adding an act command to the "Visit the therapist (1:00)" so that you can have a dialog with some of the characters sitting in the waiting room for the therapist. The problem is this adds the act command I set to the options on the act panel not the screen itself. Do I need to make a new location for this?

Is it alright if I just start adding things to the code base for my mod or should certain things be respected? I'm tinkering with Anya but outside of that adding my own NPCs. I'm writing the code inside of the current files which should be a big no no but I don't know how to do it right.
I plan on adding more but I don't know yet a bunch of things like what cla is or gs. Is there a way to fit an image as a certain size in the panel because some of my images are too big? I'm not doing anything with the current NPCs besides anya and just making my own for the therapist so is that alright? Am I stepping on the current hypnosis content roadmap by doing this?

I tried adding an act command to the "Visit the therapist (1:00)" so that you can have a dialog with some of the characters sitting in the waiting room for the therapist. The problem is this adds the act command I set to the options on the act panel not the screen itself. Do I need to make a new location for this?
[/QUOTE]

ye will need tae refer tae other mods tae see how they work, but the game requires you to change a lot more than ye hope fer. so you will probably need tae overwrite the pav clinic wi' yer own functions. act command always goes into the actions pain to put intae main yae need tae create an html anchor, and ye canna stick images in action panel either. fer the main window it is a simple image command and ye can find plentiful examples in game code. most o' fit ye need tae dae will be in the game code saving ye tae puzzle things out, just ye hae tae fathom far it lurks, so pull the game repo and study other mods wi' qgen.

here are some o' the extensions i use:

atom one dark syntax theme - dark coding theme
gitlens - overall useful tool for git functions
drawio extension - useful if you use drawio to create flowcharts for tracking quests and other stuff
colorize - helpful to track colour tags in code
indent rainbow - useful to ensure your nests are nested code spell checker
material theme icons - eye candy for file types
git blame - who to blame for screwing up the code todo highlight - useful for adding flagged notes
qsrc code highlighter by xorgoth

there is also a bunch o' snippets i maintain on me repo tae make peoples lives easier. ye will also need tae join discord fer mair technical help as main coders are there if ye need it.
 
  • Like
Reactions: JYCChris

Kuroshiro44

Newbie
Nov 2, 2022
27
19
46
for once its inside the game but no relation porn side. anyone know the title of character creation song? damn that song fire
 

themagiman

Well-Known Member
Mar 3, 2018
1,908
615
273
I tried making a new location and redirecting from pav_clinic to it and even added it to the qproj file but it gives me a no location error when i click it in game. Is there a modding guide explaining the rules of how I put this together?
 

Kevin Smarts

Engaged Member
Respected User
Game Developer
Jul 21, 2017
2,039
2,690
450
Totally correct. Is there a way I can set colors in visual studio for coding to qsp style? I just want something that makes it visually easier to see this than eyeball each character.

My two big questions right now are

I tried adding an act command to the "Visit the therapist (1:00)" so that you can have a dialog with some of the characters sitting in the waiting room for the therapist. The problem is this adds the act command I set to the options on the act panel not the screen itself. Do I need to make a new location for this?

Is it alright if I just start adding things to the code base for my mod or should certain things be respected? I'm tinkering with Anya but outside of that adding my own NPCs. I'm writing the code inside of the current files which should be a big no no but I don't know how to do it right.
There's a few format settings on our repo under tools/syntax/ includes one for VS.
 

Kevin Smarts

Engaged Member
Respected User
Game Developer
Jul 21, 2017
2,039
2,690
450
I tried making a new location and redirecting from pav_clinic to it and even added it to the qproj file but it gives me a no location error when i click it in game. Is there a modding guide explaining the rules of how I put this together?
You need to add new locations to the glife.qproj file. Its an index that's used by python to make the full .txt file that is turned into the .qsp file.
 

yoyodyne

Member
Sep 13, 2017
414
135
208
for once its inside the game but no relation porn side. anyone know the title of character creation song? damn that song fire
It's Сука, блять, не дала ебать (Suka, blyat' ne dala yebat') by Вася рулит (Vasya rulit):

Сука, блять, не дала ебать
Вася рулит

А нука слушайте девчонки это песня про вас
Вы не подумайте ведь я не голубой не пидарас
Просто меня при виде телок начинает тошнить
И отвращение мое вы не пытайтесь лечить
Все началось это по моему два года назад
Когда увидел я ее офигительный зад
Ее модельное лицо ее упругая грудь
Ночные мысли лишь о ней мне отдохнуть
Я каждый день тебе букет цветов дарил
Я каждый день тебе комплименты говорил
Я у папаши своего автомобиль украл
И целый день тебя возил и целый день тебя катал
Все свои деньги на тебя я только проебал
И вот по-моему заветный момент уже настал
И твою задницу я трогаю своими руками
Но ты сказала нет давай останемся друзьями
Тяжелый блять момент разлуки
Зато я понял

Какая ж ты на самом деле
Сууука бляяять не дала ебааать
Сууука бляяять не дала ебааать
Сукаааа Сукаааа
Сукааааа

С тех пор я телок не люблю
С тех самых пор я стал мечтать
Что все девчонки на земле начнут когда-то вымирать
Я до сих про не смог понять их ебанутый склад ума
Но знаю точно о любви она не знают нихрена
Я удивляюсь каждый раз когда в лицо они пиздят
«Тебя люблю тебя хочу» нам не краснея говорят
За нею бегаешь как лох чуть ли не лижешь ей пизду
Потом она те говорит «С тобою жить я не хочу»
Олеся Сашенька Карина, Алена Вика и Марина
Светлана Оля Галя Аня, Анжела Люда Ира Таня
Елена Катя Юля Инна, Тоня Жанна и Алина
Евгения Настя Наташа, Надежда Ксюша Маша Даша
Зачем же вы так сильно издеваетесь над нами
Зачем нас вынуждаете считать вас всех бледями
Признаетесь нам в любви, берете все слова обратно
И все ваши поступки я уверен не понятны
Не мне не Настродамусу не Путину не Богу
А я желаю в жизни вам найти одну дорогу
Где вас пропустят мимо горя, слезы, все разлуки
Хотя, мне по хуй, чтоб вы здохли, ведь вы все,

Кон-че-ны-е! Сукиии Блядиии Твариии Заебали
Сукиии Блядиии Твариии За-е-ба-ли
Сукиии Сукиии Сукиии Заебаали вы все
Телки, Суки, Бляди, Все, Телки заебаали уже.

------------------------------------------------------

Suka, blyat' ne dala yebat'
Vasya rulit

A nu ka slushayte devchonki eto pesnya pro vas
Vy ne podumayte ved' ya ne goluboy ne pidaras
Prosto menya pri vide telok nachinayet toshnit'
I otvrashcheniye moye vy ne pytaytes' lechit'
Vse nachalos' eto po moyemu dva goda nazad
Kogda uvidel ya yeye ofigitel'nyy zad
Yeye model'noye litso yeye uprugaya grud'
Nochnyye mysli lish' o ney mne otdokhnut'
Ya kazhdyy den' tebe buket tsvetov daril
Ya kazhdyy den' tebe komplimenty govoril
Ya u papashi svoyego avtomobil' ukral
I tselyy den' tebya vozil i tselyy den' tebya katal
Vse svoi den'gi na tebya ya tol'ko proyebal
I vot po-moyemu zavetnyy moment uzhe nastal
I tvoyu zadnitsu ya trogayu svoimi rukami
No ty skazala net davay ostanemsya druz'yami
Tyazhelyy blyat' moment razluki
Zato ya ponyal

Kakaya zh ty na samom dele
Suuuka blyayayat' ne dala yebaaat'
Suuuka blyayayat' ne dala yebaaat'
Sukaaaa Sukaaaa
Sukaaaaa

S tekh por ya telok ne lyublyu
S tekh samykh por ya stal mechtat'
Chto vse devchonki na zemle nachnut kogda-to vymirat'
Ya do sikh pro ne smog ponyat' ikh yebanutyy sklad uma
No znayu tochno o lyubvi ona ne znayut nikhrena
Ya udivlyayus' kazhdyy raz kogda v litso oni pizdyat
«Tebya lyublyu tebya khochu» nam ne krasneya govoryat
Za neyu begayesh' kak lokh chut' li ne lizhesh' yey pizdu
Potom ona te govorit «S toboyu zhit' ya ne khochu»
Olesya Sashen'ka Karina, Alena Vika i Marina
Svetlana Olya Galya Anya, Anzhela Lyuda Ira Tanya
Yelena Katya Yulya Inna, Tonya Zhanna i Alina
Yevgeniya Nastya Natasha, Nadezhda Ksyusha Masha Dasha
Zachem zhe vy tak sil'no izdevayetes' nad nami
Zachem nas vynuzhdayete schitat' vas vsekh bledyami
Priznayetes' nam v lyubvi, berete vse slova obratno
I vse vashi postupki ya uveren ne ponyatny
Ne mne ne Nastrodamusu ne Putinu ne Bogu
A ya zhelayu v zhizni vam nayti odnu dorogu
Gde vas propustyat mimo gorya, slezy, vse razluki
Khotya, mne po khuy, chtob vy zdokhli, ved' vy vse,

Kon-che-ny-ye!
Sukiii Blyadiii Tvariii Zayebali
Sukiii Blyadiii Tvariii Za-ye-ba-li
Sukiii Sukiii Sukiii Zayebaali vy vse
Telki, Suki, Blyadi, Vse, Telki zayebaali uzhe.
 

themagiman

Well-Known Member
Mar 3, 2018
1,908
615
273
qsrc code highlighter by xorgoth
I can't find that anywhere.

There's a few format settings on our repo under tools/syntax/ includes one for VS.
Where do I put this on windows? I tried in my packages folder but it did nothing.

The error I'm getting right now is that the new location I created I can load into from pav_clinic by using the code and instead just saying act 'Visit the therapist (1:00)': gt 'pav_clinic_hallway', 'start'

so nothing changed besides the location which then dumps to the therapist when the event is done. The error is
Location : pav_clinic_hallway
Area : on visit
Desc: Unknown action!

Here's the simplification of my code
Code:
# pav_clinic_hallway

$loc = 'pav_clinic'
$location_type = 'public_indoors'


if $ARGS[0] = '':
    CLOSE ALL
    gs 'core_library', 'setloc', 'pav_clinic', ''
    $location_type = 'indoors'
    menu_off = 0
    frost = 0
    gs 'stat'
    gs 'themes', 'indoors'

    'blah'
    if numTimesHypnoed < 3:
        'stuff1'
        act 'Wait your turn': gt 'therapist', 'start'
    elseif numTimesHypnoed < 5:
        'stuff2'
        act 'Wait your turn': gt 'therapist', 'start'
    else
        'stuff3'
        act 'Wait your turn': gt 'therapist', 'start'
    end
end
it loads correctly but I get that error. What gives?
 

Kevin Smarts

Engaged Member
Respected User
Game Developer
Jul 21, 2017
2,039
2,690
450
I can't find that anywhere.


Where do I put this on windows? I tried in my packages folder but it did nothing.

The error I'm getting right now is that the new location I created I can load into from pav_clinic by using the code and instead just saying act 'Visit the therapist (1:00)': gt 'pav_clinic_hallway', 'start'

so nothing changed besides the location which then dumps to the therapist when the event is done. The error is
Location : pav_clinic_hallway
Area : on visit
Desc: Unknown action!

Here's the simplification of my code
Code:
# pav_clinic_hallway

$loc = 'pav_clinic'
$location_type = 'public_indoors'


if $ARGS[0] = '':
    CLOSE ALL
    gs 'core_library', 'setloc', 'pav_clinic', ''
    $location_type = 'indoors'
    menu_off = 0
    frost = 0
    gs 'stat'
    gs 'themes', 'indoors'

    'blah'
    if numTimesHypnoed < 3:
        'stuff1'
        act 'Wait your turn': gt 'therapist', 'start'
    elseif numTimesHypnoed < 5:
        'stuff2'
        act 'Wait your turn': gt 'therapist', 'start'
    else
        'stuff3'
        act 'Wait your turn': gt 'therapist', 'start'
    end
end
it loads correctly but I get that error. What gives?
That does all look correct. I don't use VS so I don't know where the plugin for it should go but I would guess somewhere in the VS folders.
 

Xarvenius

Newbie
Feb 7, 2020
62
16
173
I can't find that anywhere.


Where do I put this on windows? I tried in my packages folder but it did nothing.

The error I'm getting right now is that the new location I created I can load into from pav_clinic by using the code and instead just saying act 'Visit the therapist (1:00)': gt 'pav_clinic_hallway', 'start'

so nothing changed besides the location which then dumps to the therapist when the event is done. The error is
Location : pav_clinic_hallway
Area : on visit
Desc: Unknown action!

Here's the simplification of my code
Code:
# pav_clinic_hallway

$loc = 'pav_clinic'
$location_type = 'public_indoors'


if $ARGS[0] = '':
    CLOSE ALL
    gs 'core_library', 'setloc', 'pav_clinic', ''
    $location_type = 'indoors'
    menu_off = 0
    frost = 0
    gs 'stat'
    gs 'themes', 'indoors'

    'blah'
    if numTimesHypnoed < 3:
        'stuff1'
        act 'Wait your turn': gt 'therapist', 'start'
    elseif numTimesHypnoed < 5:
        'stuff2'
        act 'Wait your turn': gt 'therapist', 'start'
    else
        'stuff3'
        act 'Wait your turn': gt 'therapist', 'start'
    end
end
it loads correctly but I get that error. What gives?
did you maybee use ctrl+z or another shortcut to revert or repeat your changes?
i noticed playing around a bit in qgen with values and squeezing in a few overrides that doing stuff like ctrl+z messes everything up even though it look correct.
 

themagiman

Well-Known Member
Mar 3, 2018
1,908
615
273
Code:
        gs 'schedule', 'A186'
        if locat['A186'] = 1:
            if therapistQW['met'] = 0:
                act 'Approach the Nurses Desk': gt 'therapist', 'intro'
            else
                if hypnoSchedule = 0 or cheatVars['therapist_schedule'] or (therapist_weekly_block = 0 and week = 4 and hour >= 18 and hour < 19):
                    act 'Visit the therapist (1:00)': gt 'pav_clinic_hallway'
                end
            end
        end
Here's the code I use to call the new location I created. It still keeps giving me the same error but the script works as it is supposed to so I'm not sure what is going on. I also don't know what locat[] or A186 is or does.
 

HoodedSilence

That which passes is forgotten.
Game Developer
Jan 18, 2023
375
272
187
Code:
        gs 'schedule', 'A186'
        if locat['A186'] = 1:
            if therapistQW['met'] = 0:
                act 'Approach the Nurses Desk': gt 'therapist', 'intro'
            else
                if hypnoSchedule = 0 or cheatVars['therapist_schedule'] or (therapist_weekly_block = 0 and week = 4 and hour >= 18 and hour < 19):
                    act 'Visit the therapist (1:00)': gt 'pav_clinic_hallway'
                end
            end
        end
Here's the code I use to call the new location I created. It still keeps giving me the same error but the script works as it is supposed to so I'm not sure what is going on. I also don't know what locat[] or A186 is or does.
locat is variable to track the users present location, it is the newer nomenclature that is slowly being integrated, so it is tracking npc user 186 from the schedule file.
 

HoodedSilence

That which passes is forgotten.
Game Developer
Jan 18, 2023
375
272
187
I can't find that anywhere.


Where do I put this on windows? I tried in my packages folder but it did nothing.

The error I'm getting right now is that the new location I created I can load into from pav_clinic by using the code and instead just saying act 'Visit the therapist (1:00)': gt 'pav_clinic_hallway', 'start'

so nothing changed besides the location which then dumps to the therapist when the event is done. The error is
Location : pav_clinic_hallway
Area : on visit
Desc: Unknown action!

Here's the simplification of my code
Code:
# pav_clinic_hallway

$loc = 'pav_clinic'
$location_type = 'public_indoors'


if $ARGS[0] = '':
    CLOSE ALL
    gs 'core_library', 'setloc', 'pav_clinic', ''
    $location_type = 'indoors'
    menu_off = 0
    frost = 0
    gs 'stat'
    gs 'themes', 'indoors'

    'blah'
    if numTimesHypnoed < 3:
        'stuff1'
        act 'Wait your turn': gt 'therapist', 'start'
    elseif numTimesHypnoed < 5:
        'stuff2'
        act 'Wait your turn': gt 'therapist', 'start'
    else
        'stuff3'
        act 'Wait your turn': gt 'therapist', 'start'
    end
end
it loads correctly but I get that error. What gives?
this is why it is better to edit the qsrc files and compile yourself it makes it far simpler to debug with the tools found in the repo that gives far more context. the first is in the make batch file and the second is under tools qsp analyser. you will be digging fer days if yer nae using fits available.
 

Kevin Smarts

Engaged Member
Respected User
Game Developer
Jul 21, 2017
2,039
2,690
450
Code:
        gs 'schedule', 'A186'
        if locat['A186'] = 1:
            if therapistQW['met'] = 0:
                act 'Approach the Nurses Desk': gt 'therapist', 'intro'
            else
                if hypnoSchedule = 0 or cheatVars['therapist_schedule'] or (therapist_weekly_block = 0 and week = 4 and hour >= 18 and hour < 19):
                    act 'Visit the therapist (1:00)': gt 'pav_clinic_hallway'
                end
            end
        end
Here's the code I use to call the new location I created. It still keeps giving me the same error but the script works as it is supposed to so I'm not sure what is going on. I also don't know what locat[] or A186 is or does.
cheatVars['therapist_schedule']
Should be checked against a value but I think it'll default to "= 0", should state the value though.
 
4.30 star(s) 88 Votes