Quest>Open game or Alt O and select qsp file of the game. You will see a list in Locations on the left.Silly question i know,but how do i "open" the game with qgen?By create location or what?I open the standalone content qsp file and nothing shows,First timer here sorry and thanks
Dynamic code are saved into variables, you need to revisit the location that set the variable to get the new code.Not sure if this is the best place to ask, but it's QSP related:
This is giving me a headache. I am trying to fix an abandoned game and after several hours I narrowed it down to a line of code and I have system messages to announce me the value of variable pol[you]
MSG"START pol[you]:<<pol[you]>>"
if (num>6 and npc>6 and num=npc and $loc[num]!'dead' and $loc[num]!'' and $name[num]!'') or num=1:dynamic $d_fix_gender
MSG"END pol[you]:<<pol[you]>>"
So it shows me I start with pol[you] being 1, then it ends with it being 0. The thing is, function $d_fix_gender doesn't even affect the pol value. It has one line of code where it sets pol to 0, so I replace 0 with 1 and nothing. Going by the code the condition doesn't even trigger. I even tried purging whole function of content leaving it empty, the value still changes. Is there some black magic at work here?
pol[0]=0
pol[1]=1
you=0
$dynamiccode = 'you = 1'
$loc[0]='something'
$loc[1]='something'
$loc[7]='something'
$name[0]='something'
$name[1]='something'
$name[7]='something'
num=0
npc=7
MSG"START 1=0 pol[you]:<<pol[you]>>"
if (num>6 and npc>6 and num=npc and $loc[num]!'dead' and $loc[num]!'' and $name[num]!'') or num=1: dynamic $dynamiccode
MSG"END 1=0 pol[you]:<<pol[you]>>"
num=1
MSG"START 1=1 pol[you]:<<pol[you]>>"
if (num>6 and npc>6 and num=npc and $loc[num]!'dead' and $loc[num]!'' and $name[num]!'') or num=1: dynamic $dynamiccode
MSG"END 1=1 pol[you]:<<pol[you]>>"
you=0
num=7
MSG"START 1=1 pol[you]:<<pol[you]>>"
if (num>6 and npc>6 and num=npc and $loc[num]!'dead' and $loc[num]!'' and $name[num]!'') or num=1: dynamic $dynamiccode
MSG"END 1=1 pol[you]:<<pol[you]>>"
I'm not sure what you mean by "you need to revisit the location that set the variable to get the new code"Dynamic code are saved into variables, you need to revisit the location that set the variable to get the new code.
If I understand correctly, it work fine for me:
-snip-
pol[0]=0
pol[1]=1
you=0
$dynamiccode = 'you = 0'
MSG"START 1=0 pol[you]:<<pol[you]>>"
if 1=0: dynamic $dynamiccode
MSG"END 1=0 pol[you]:<<pol[you]>>"
MSG"START 1=1 pol[you]:<<pol[you]>>"
if 1=1: dynamic $dynamiccode
MSG"END 1=1 pol[you]:<<pol[you]>>"
$dynamiccode = 'you = 1'
MSG"START 1=0 pol[you]:<<pol[you]>>"
if 1=0: dynamic $dynamiccode
MSG"END 1=0 pol[you]:<<pol[you]>>"
MSG"START 1=1 pol[you]:<<pol[you]>>"
if 1=1: dynamic $dynamiccode
MSG"END 1=1 pol[you]:<<pol[you]>>"
Sure, if you are willing:You can send me the file if you still have it. I can take a look and find if there's a bug.
$d_fix_gender
is in the location dyn2
, which is called from dyn
which is itself call from a few places, but not directly by the path from the save to locale_gloryhole
.$d_fix_gender
instead of the one already in the save.dyn
, so that everytime someone load a savegame you are sure to get the latest version of all your dynamic function.$ONOBJSEL = 'onobjsel'
to execute the code in the location onojbsel when an object is selected, there's other events that can be set to a specific location:! LOCATION EVENT
$ONNEWLOC = '$onNewLocationEvent'
! OBJECT EVENTS
$ONOBJADD = '$onObjectAddedEvent'
$ONOBJDEL = '$onObjectDeletedEvent'
$ONOBJSEL = '$onObjectSelectedEvent'
! ACTION EVENT
$ONACTSEL = '$onActionSelectedEvent'
! GAMESTATE EVENTS
$ONGLOAD = '$onGameLoadEvent'
$ONGSAVE = '$onGameSaveEvent'
if $selobj='Loadgame':
clr&cla&cls
UNSEL
OPENGAME
gs'dyn'
gs'dyn2'
gs'dinsex'
end
No idea without looking at the file. I can't find the game here, I found it on google but downloading it will take quite some time. You can share me only the file if you want.Some newer QSP games won't open in Qgen 4, like the new Provincial. Does anyone know how to fix that?
I tried attaching the file to this post, but it says that the uploaded file is too large for the server to process.No idea without looking at the file. I can't find the game here, I found it on google but downloading it will take quite some time. You can share me only the file if you want.
You can upload it somewhere like mega and share me the link. The .qsp file should be small enough to pass under any free plan.I tried attaching the file to this post, but it says that the uploaded file is too large for the server to process.
How can I share it?
I uploaded it to MegaYou can upload it somewhere like mega and share me the link. The .qsp file should be small enough to pass under any free plan.
That's weird. When I try to open the file with QGen it just stays empty :/
Yep that worked. Thanks!Can you open the qsp file in another clean folder? There might be some weird behavior from mods with the commandin the starting location.
INCLIB 'mods/modsManager.qsp'