2023-07-05 23:22:15 +02:00
|
|
|
from random import randint
|
2023-08-19 17:33:00 +02:00
|
|
|
from PIL import Image
|
2023-07-05 23:22:15 +02:00
|
|
|
import fxconv
|
|
|
|
import json
|
|
|
|
import pathlib
|
|
|
|
import csv
|
2023-08-08 09:46:07 +02:00
|
|
|
import os
|
2023-07-05 23:22:15 +02:00
|
|
|
|
2023-08-21 22:53:33 +02:00
|
|
|
|
2023-07-05 23:22:15 +02:00
|
|
|
def convert(input, output, params, target):
|
|
|
|
if params["custom-type"] == "map":
|
2023-08-19 15:34:26 +02:00
|
|
|
print("ERROR : Asset ", params["name"], " has legacy type map")
|
2023-08-08 09:46:07 +02:00
|
|
|
return 1
|
|
|
|
elif params["custom-type"] == "world":
|
|
|
|
convert_world(input, output, params, target)
|
2023-07-05 23:22:15 +02:00
|
|
|
return 0
|
2023-08-19 17:33:00 +02:00
|
|
|
elif params["custom-type"] == "custom-image":
|
|
|
|
convert_custom_image(input, output, params, target)
|
|
|
|
return 0
|
|
|
|
elif params["custom-type"] == "font":
|
|
|
|
convert_font(input, output, params, target)
|
|
|
|
return 0
|
2023-08-21 21:35:49 +02:00
|
|
|
elif params["custom-type"] == "dialogs":
|
2023-08-22 10:39:37 +02:00
|
|
|
print("ERROR : Asset ", params["name"], " has legacy type dialog")
|
|
|
|
#convert_dialogs(input, output, params, target)
|
2023-08-21 21:35:49 +02:00
|
|
|
return 0
|
2023-07-05 23:22:15 +02:00
|
|
|
else:
|
|
|
|
return 1
|
|
|
|
|
2023-08-08 09:46:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
def convert_world(input, output, params, target):
|
|
|
|
print( "WE ARE COMPUTING THE WORLD", input )
|
|
|
|
|
|
|
|
data = json.load(open(input, "r"))
|
|
|
|
nbMaps = ["fileName" in i for i in data["maps"]].count(True)
|
|
|
|
print( "We have to treat ", nbMaps, " maps")
|
|
|
|
print( "So let's go ... ")
|
|
|
|
|
|
|
|
structWorld = fxconv.Structure()
|
2023-08-16 17:34:45 +02:00
|
|
|
#structExtra = fxconv.Structure()
|
|
|
|
|
2023-08-08 09:46:07 +02:00
|
|
|
for i in range(nbMaps):
|
|
|
|
nameMap = data["maps"][i]["fileName"].replace(".tmx","")
|
|
|
|
nameMapFree = nameMap.split("/")[-1]
|
|
|
|
#count the number of "back" (cd ..) to locate the map on the computer
|
|
|
|
nbRetour = nameMap.count("..")+1
|
|
|
|
#create the map absolute path
|
|
|
|
|
|
|
|
nameTMX = "/".join(input.split("/")[:-nbRetour]) + "/" + nameMap + ".tmx"
|
|
|
|
nameJSON = "/".join(input.split("/")[:-nbRetour]) + "/" + nameMap + ".json"
|
|
|
|
|
|
|
|
commandline = 'tiled --export-map json ' + nameTMX + ' ' + nameJSON
|
|
|
|
print( "TILED COMMAND LINE FOR MAPS : ", commandline )
|
|
|
|
os.system( commandline )
|
|
|
|
|
|
|
|
mapPath = "/".join(input.split("/")[:-nbRetour]) + "/" + nameMap + ".json"
|
|
|
|
print("Map ", i , " name : ", mapPath )
|
|
|
|
|
|
|
|
xmin = data["maps"][i]["x"]
|
|
|
|
print( "xmin = ", xmin )
|
|
|
|
|
|
|
|
ymin = data["maps"][i]["y"]
|
|
|
|
print( "ymin = ", ymin )
|
|
|
|
|
|
|
|
xmax = data["maps"][i]["x"] + data["maps"][i]["width"]
|
|
|
|
print( "xmax = ", xmax )
|
|
|
|
|
|
|
|
ymax = data["maps"][i]["y"] + data["maps"][i]["height"]
|
|
|
|
print( "ymax = ", ymax )
|
|
|
|
|
2023-08-15 16:50:51 +02:00
|
|
|
map = get_tile_map_data( mapPath, output, params, target, xmin, ymin, xmax, ymax)
|
2023-08-08 09:46:07 +02:00
|
|
|
print( "Map = ", map )
|
2023-08-10 16:22:31 +02:00
|
|
|
structWorld += fxconv.ptr( map )
|
|
|
|
|
|
|
|
structWorld += fxconv.u32(0)
|
2023-08-08 09:46:07 +02:00
|
|
|
|
|
|
|
#generate !
|
|
|
|
fxconv.elf(structWorld, output, "_" + params["name"], **target)
|
|
|
|
|
|
|
|
|
2023-08-15 16:50:51 +02:00
|
|
|
def get_tile_map_data(input, output, params, target, xmin, ymin, xmax, ymax):
|
2023-08-08 09:46:07 +02:00
|
|
|
print( "WE ARE COMPUTING THE MAP : ", input )
|
2023-07-05 23:22:15 +02:00
|
|
|
data = json.load(open(input, "r"))
|
|
|
|
|
|
|
|
#find the tileset in use. it's a relative path (like ../tileset.tsx)
|
|
|
|
nameTileset = data["tilesets"][0]["source"].replace(".tsx","")
|
|
|
|
print(nameTileset)
|
|
|
|
#the name of the tileset without the .something
|
|
|
|
nameTilesetFree = nameTileset.split("/")[-1]
|
|
|
|
#count the number of "back" (cd ..) to locate the tileset on the computer
|
|
|
|
nbRetour = nameTileset.count("..")+1
|
|
|
|
#create the tileset absolute path
|
2023-08-08 09:46:07 +02:00
|
|
|
tilesetTSX = "/".join(input.split("/")[:-nbRetour]) + "/" + nameTileset + ".tsx"
|
|
|
|
tilesetJSON = "/".join(input.split("/")[:-nbRetour]) + "/" + nameTileset + ".json"
|
|
|
|
|
|
|
|
commandline = 'tiled --export-tileset json ' + tilesetTSX + ' ' + tilesetJSON
|
|
|
|
print( "TILED COMMAND LINE FOR TILESET : ", commandline )
|
|
|
|
os.system( commandline )
|
|
|
|
|
|
|
|
tileset = open(tilesetJSON, "r")
|
2023-07-05 23:22:15 +02:00
|
|
|
data_tileset = json.load(tileset)
|
|
|
|
tileset_size = data_tileset.get("columns")
|
|
|
|
tileset.close()
|
|
|
|
|
2023-07-09 20:27:22 +02:00
|
|
|
#find the ID of the first tile in the walkable tileset ()
|
|
|
|
indexWalkable = data["tilesets"][1]["firstgid"]
|
|
|
|
print(indexWalkable)
|
2023-07-05 23:22:15 +02:00
|
|
|
|
|
|
|
#Extract from the json the width, height
|
|
|
|
w, h = data["width"], data["height"]
|
|
|
|
|
|
|
|
#nbTileLayer is the number of "true" layers (without ObjectsLayer)
|
2023-07-09 20:27:22 +02:00
|
|
|
nbTilelayer = ["data" in i for i in data["layers"]].count(True) - 1
|
|
|
|
print( nbTilelayer)
|
2023-07-05 23:22:15 +02:00
|
|
|
|
2023-08-01 22:26:59 +02:00
|
|
|
#index of the various layers (may change from one map to another)
|
|
|
|
layer_walkable = 0
|
|
|
|
layer_foreground = 0
|
|
|
|
layer_background = 0
|
|
|
|
|
|
|
|
#create the structure of the map
|
2023-07-05 23:22:15 +02:00
|
|
|
structMap = fxconv.Structure()
|
|
|
|
|
2023-08-18 20:56:44 +02:00
|
|
|
structMap += fxconv.u32(w) + fxconv.u32(h) + fxconv.u32(nbTilelayer)
|
|
|
|
structMap += fxconv.u32(tileset_size)
|
2023-08-10 16:22:31 +02:00
|
|
|
|
2023-08-18 20:56:44 +02:00
|
|
|
structMap += fxconv.u32(xmin) + fxconv.u32(ymin) + fxconv.u32(xmax) + fxconv.u32(ymax)
|
2023-08-10 16:22:31 +02:00
|
|
|
|
2023-07-05 23:22:15 +02:00
|
|
|
structMap += fxconv.ref(f"img_{nameTilesetFree}")
|
2023-08-01 22:26:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
#extraction of the data contained in the layer "Walkable" of the map
|
|
|
|
for i in range(nbTilelayer+1):
|
|
|
|
datavalid = data["layers"][i]
|
|
|
|
if datavalid["name"]=="Walkable":
|
|
|
|
layer_walkable = i
|
|
|
|
print( "Walkable Tile Data in layer : ", layer_walkable)
|
|
|
|
break
|
|
|
|
elif i==nbTilelayer:
|
2023-08-15 16:50:51 +02:00
|
|
|
print( "ERROR : No Walkable layer data !!!" )
|
2023-08-01 22:26:59 +02:00
|
|
|
|
2023-07-09 20:27:22 +02:00
|
|
|
walk_data = bytes()
|
2023-08-01 22:26:59 +02:00
|
|
|
layer = data["layers"][layer_walkable]
|
2023-07-09 20:27:22 +02:00
|
|
|
for tile in layer["data"]:
|
2023-08-01 22:26:59 +02:00
|
|
|
#print( tile )
|
|
|
|
if tile == 0: walk_data += fxconv.u8(tile) #if walkable_data = 0 then it is a blanck cell so nothing to change
|
|
|
|
else : walk_data += fxconv.u8(tile-indexWalkable) #if !=0 than we need to shift the tile number by considering the first tileID (given by indexwalkable)
|
2023-07-09 20:27:22 +02:00
|
|
|
structMap += fxconv.ptr(walk_data)
|
|
|
|
|
2023-07-05 23:22:15 +02:00
|
|
|
|
2023-08-22 10:39:37 +02:00
|
|
|
|
|
|
|
|
2023-08-16 17:34:45 +02:00
|
|
|
nbextra = 0
|
|
|
|
extradata = fxconv.Structure()
|
|
|
|
|
|
|
|
nbextra, extradata = get_extra_map_data(input, output, params, target, xmin, ymin, xmax, ymax)
|
|
|
|
|
|
|
|
if (nbextra==0):
|
|
|
|
structMap += fxconv.u32( 0 )
|
|
|
|
structMap += fxconv.u32( 0 )
|
|
|
|
else:
|
|
|
|
structMap += fxconv.u32( int(nbextra) )
|
|
|
|
structMap += fxconv.ptr( extradata )
|
|
|
|
|
2023-08-10 16:22:31 +02:00
|
|
|
|
2023-08-22 10:39:37 +02:00
|
|
|
|
|
|
|
|
|
|
|
nameDialog = data["properties"][0]["value"]
|
|
|
|
dialogfile = "/".join(input.split("/")[:-nbRetour]) + "/" + nameDialog
|
|
|
|
print( "THE DIALOGS ARE CONTAINED IN THE FILE : ", dialogfile )
|
|
|
|
|
|
|
|
nbdiag = 0
|
|
|
|
diagdata = fxconv.Structure()
|
|
|
|
|
|
|
|
nbdiag, diagdata = convert_dialogs(dialogfile, output, params, target)
|
|
|
|
|
|
|
|
if (nbdiag==0):
|
|
|
|
structMap += fxconv.u32( 0 )
|
|
|
|
structMap += fxconv.u32( 0 )
|
|
|
|
else:
|
|
|
|
structMap += fxconv.u32( int(nbdiag) )
|
|
|
|
structMap += fxconv.ptr( diagdata )
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-08-01 22:26:59 +02:00
|
|
|
#extraction of the data contained in the layer "Background" and "Foreground" of the map
|
|
|
|
|
|
|
|
|
|
|
|
#import the Background layer of the map
|
|
|
|
for i in range(nbTilelayer+1):
|
|
|
|
datavalid = data["layers"][i]
|
|
|
|
if datavalid["name"]=="Background":
|
|
|
|
layer_background = i
|
|
|
|
print( "Background Tile Data in layer : ", layer_background)
|
|
|
|
break
|
|
|
|
elif i==nbTilelayer:
|
2023-08-15 16:50:51 +02:00
|
|
|
print( "ERROR : No Background layer data !!!" )
|
2023-08-01 22:26:59 +02:00
|
|
|
|
|
|
|
layer_data = bytes()
|
|
|
|
layer = data["layers"][layer_background]
|
|
|
|
for tile in layer["data"]:
|
|
|
|
layer_data += fxconv.u16(tile-1)
|
|
|
|
structMap += fxconv.ptr(layer_data)
|
|
|
|
|
|
|
|
|
2023-08-10 16:22:31 +02:00
|
|
|
|
2023-08-01 22:26:59 +02:00
|
|
|
#import the foreground layer of the map
|
|
|
|
for i in range(nbTilelayer+1):
|
|
|
|
datavalid = data["layers"][i]
|
|
|
|
if datavalid["name"]=="Foreground":
|
|
|
|
layer_foreground = i
|
|
|
|
print( "Foreground Tile Data in layer : ", layer_foreground)
|
|
|
|
break
|
|
|
|
elif i==nbTilelayer:
|
|
|
|
printf( "ERROR : No Foreground layer data !!!" )
|
|
|
|
|
|
|
|
layer_data = bytes()
|
|
|
|
layer = data["layers"][layer_foreground]
|
|
|
|
for tile in layer["data"]:
|
|
|
|
layer_data += fxconv.u16(tile-1)
|
|
|
|
structMap += fxconv.ptr(layer_data)
|
|
|
|
|
2023-08-08 09:46:07 +02:00
|
|
|
|
|
|
|
return structMap
|
2023-07-05 23:22:15 +02:00
|
|
|
|
2023-08-15 16:50:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
def get_extra_map_data(input, output, params, target, xmin, ymin, xmax, ymax):
|
|
|
|
print( "WE ARE COMPUTING THE EXTRA DATA OF THE MAP : ", input )
|
|
|
|
data = json.load(open(input, "r"))
|
2023-08-19 15:34:26 +02:00
|
|
|
|
2023-08-15 16:50:51 +02:00
|
|
|
nblayer = ["id" in i for i in data["layers"]].count(True) - 1
|
|
|
|
print( "I found ", nblayer, " of extradata")
|
|
|
|
|
|
|
|
#index of the various layers (may change from one map to another)
|
|
|
|
layer_extradata = 0
|
|
|
|
|
|
|
|
#import the foreground layer of the map
|
|
|
|
for i in range(nblayer+1):
|
|
|
|
datavalid = data["layers"][i]
|
|
|
|
if datavalid["name"]=="ExtraData":
|
|
|
|
layer_extradata = i
|
|
|
|
print( "Extra Data in layer : ", layer_extradata)
|
|
|
|
break
|
|
|
|
elif i==nblayer:
|
|
|
|
print( "ERROR : No ExtraData layer data !!!" )
|
2023-08-16 17:34:45 +02:00
|
|
|
return 0, fxconv.u32(0)
|
2023-08-15 16:50:51 +02:00
|
|
|
|
|
|
|
#create the structure of the map
|
|
|
|
structData = fxconv.Structure()
|
|
|
|
|
2023-08-16 17:34:45 +02:00
|
|
|
nbExtraData = 0
|
2023-08-15 16:50:51 +02:00
|
|
|
layer = data["layers"][layer_extradata]
|
|
|
|
for i in layer["objects"]:
|
2023-08-18 20:56:44 +02:00
|
|
|
|
2023-08-19 11:16:51 +02:00
|
|
|
#get the type of the item
|
|
|
|
tpe = i["type"]
|
|
|
|
|
|
|
|
#we check if the type corresponds to a items of type Point in Tiled
|
|
|
|
if tpe in ( "SGN", "NPC", "INFO" ):
|
|
|
|
|
|
|
|
nbExtraData = nbExtraData + 1
|
|
|
|
x = i["x"] + xmin
|
|
|
|
y = i["y"] + ymin
|
|
|
|
nme = i["name"]
|
|
|
|
|
|
|
|
|
2023-08-21 21:35:49 +02:00
|
|
|
dialogID = None
|
|
|
|
needAction = None
|
2023-08-19 11:16:51 +02:00
|
|
|
path = 0
|
|
|
|
path_length = 0
|
|
|
|
xdata = None
|
|
|
|
ydata = None
|
|
|
|
|
|
|
|
#we now fill all the properties of this item
|
|
|
|
for j in i["properties"]:
|
|
|
|
#property "dialog"
|
2023-08-21 21:35:49 +02:00
|
|
|
if j["name"]=="dialogID": dialogID = j[ "value" ]
|
2023-08-19 11:16:51 +02:00
|
|
|
#property "isQuestion"
|
2023-08-21 21:35:49 +02:00
|
|
|
elif j["name"]=="needAction": needAction = j[ "value" ]
|
|
|
|
|
2023-08-19 11:16:51 +02:00
|
|
|
else:
|
|
|
|
#Extra properties for NPCs (path)
|
|
|
|
if tpe=="NPC":
|
|
|
|
if j["name"]=="hasPath":
|
2023-08-19 14:18:41 +02:00
|
|
|
pathID = None
|
2023-08-19 11:16:51 +02:00
|
|
|
path = j[ "value" ]
|
2023-08-19 14:18:41 +02:00
|
|
|
if path==1:
|
|
|
|
print( "PNJ has path - NOW LOOKING FOR RELEVANT DATA" )
|
|
|
|
|
|
|
|
# we start looking for path data with first the ID of the path Object
|
|
|
|
for u in i["properties"]:
|
|
|
|
if u["name"]=="path":
|
|
|
|
pathID = u[ "value" ]
|
|
|
|
print( "path ID is identified : ID= ", pathID )
|
|
|
|
|
|
|
|
for v in layer["objects"]:
|
|
|
|
if v[ "id" ] == pathID:
|
|
|
|
print( "path data found : " )
|
2023-08-19 15:34:26 +02:00
|
|
|
|
2023-08-21 22:53:33 +02:00
|
|
|
xdata = bytes()
|
|
|
|
ydata = bytes()
|
2023-08-19 15:34:26 +02:00
|
|
|
|
2023-08-19 14:18:41 +02:00
|
|
|
for w in v[ "polyline" ]:
|
|
|
|
path_length = path_length + 1
|
|
|
|
print( "X= ", w[ "x" ], " Y= ", w[ "y" ] )
|
|
|
|
xdata += fxconv.u16( int( w[ "x" ] ) )
|
|
|
|
ydata += fxconv.u16( int( w[ "y" ] ) )
|
|
|
|
|
|
|
|
else:
|
|
|
|
print( "PNJ has no Path" )
|
2023-08-19 11:16:51 +02:00
|
|
|
|
|
|
|
else:
|
|
|
|
print( "UNIDENTIFIED PROPERTY : ", j["name"])
|
|
|
|
|
2023-08-21 22:53:33 +02:00
|
|
|
print( "OBJECT X= ", x, " Y= ", y, "STR= ", dialogID )
|
2023-08-19 11:16:51 +02:00
|
|
|
print( " Type= ", tpe, " Name= ", nme )
|
2023-08-21 22:53:33 +02:00
|
|
|
print( " Action?= ", needAction )
|
|
|
|
|
2023-08-19 11:16:51 +02:00
|
|
|
|
2023-08-21 21:35:49 +02:00
|
|
|
|
2023-08-19 11:16:51 +02:00
|
|
|
structData += fxconv.u32( int(x) )
|
|
|
|
structData += fxconv.u32( int(y) )
|
|
|
|
structData += fxconv.string( nme )
|
|
|
|
structData += fxconv.string( tpe )
|
2023-08-21 22:53:33 +02:00
|
|
|
structData += fxconv.u32( int(dialogID) )
|
2023-08-21 21:35:49 +02:00
|
|
|
structData += fxconv.u32( int(needAction) )
|
|
|
|
|
2023-08-19 14:18:41 +02:00
|
|
|
if path==0:
|
|
|
|
structData += fxconv.u32(0)
|
|
|
|
structData += fxconv.u32(0)
|
|
|
|
structData += fxconv.u32(0)
|
|
|
|
structData += fxconv.u32(0)
|
|
|
|
else:
|
2023-08-19 23:42:48 +02:00
|
|
|
o_xdata = fxconv.Structure()
|
|
|
|
o_xdata += xdata
|
|
|
|
o_ydata = fxconv.Structure()
|
|
|
|
o_ydata += ydata
|
|
|
|
|
2023-08-19 14:18:41 +02:00
|
|
|
structData += fxconv.u32(path)
|
|
|
|
structData += fxconv.u32(path_length)
|
2023-08-19 23:42:48 +02:00
|
|
|
structData += fxconv.ptr(o_xdata)
|
|
|
|
structData += fxconv.ptr(o_ydata)
|
2023-08-19 11:16:51 +02:00
|
|
|
|
|
|
|
#else we do nothing (yet)
|
|
|
|
else:
|
2023-08-21 22:53:33 +02:00
|
|
|
print( "Skip this object" )
|
|
|
|
|
2023-08-16 17:34:45 +02:00
|
|
|
|
|
|
|
return nbExtraData, structData
|
2023-08-19 17:33:00 +02:00
|
|
|
|
2023-08-21 21:35:49 +02:00
|
|
|
|
2023-08-19 17:33:00 +02:00
|
|
|
def convert_custom_image(input, output, params, target):
|
|
|
|
scale = int(params.get("scale", 1))
|
|
|
|
|
|
|
|
# Upscale image before converting
|
|
|
|
im = Image.open(input)
|
|
|
|
im = im.resize((im.width * scale, im.height * scale),
|
|
|
|
resample=Image.NEAREST)
|
|
|
|
|
|
|
|
o = fxconv.convert_image_cg(im, params)
|
|
|
|
fxconv.elf(o, output, "_" + params["name"], **target)
|
|
|
|
|
2023-08-21 21:35:49 +02:00
|
|
|
|
|
|
|
|
2023-08-19 17:33:00 +02:00
|
|
|
def convert_font(input, output, params, target):
|
|
|
|
o = fxconv.convert_topti(input, params)
|
|
|
|
fxconv.elf(o, output, "_" + params["name"], **target)
|
2023-08-21 21:35:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def convert_dialogs(input, output, params, target):
|
|
|
|
|
|
|
|
print( "WE ARE COMPUTING THE DIALOGS FROM : ", input )
|
|
|
|
data = json.load(open(input, "r"))
|
|
|
|
|
|
|
|
structDialogs = fxconv.Structure()
|
2023-08-22 10:39:37 +02:00
|
|
|
nbdialogs = 0
|
2023-08-21 21:35:49 +02:00
|
|
|
|
|
|
|
for d in data["dialogs"]:
|
2023-08-21 22:53:33 +02:00
|
|
|
print( int(d[ "ID" ]))
|
|
|
|
# print( d[ "dialog" ] )
|
|
|
|
print( int(d[ "isQuestion" ]) )
|
|
|
|
# print( d[ "choice" ].replace('$', chr(0)) )
|
|
|
|
# print( d[ "conclusion1" ] )
|
|
|
|
# print( int(d[ "next1" ] ) )
|
|
|
|
# print( d[ "conclusion2" ] )
|
|
|
|
# print( int(d[ "next2" ] ) )
|
|
|
|
# print( int(d[ "nextOther" ]) )
|
2023-08-22 10:39:37 +02:00
|
|
|
nbdialogs = nbdialogs + 1
|
2023-08-21 22:53:33 +02:00
|
|
|
|
2023-08-21 21:35:49 +02:00
|
|
|
structDialogs += fxconv.u32( int(d[ "ID" ] ) )
|
2023-08-21 22:53:33 +02:00
|
|
|
structDialogs += fxconv.string( d[ "dialog" ] )
|
2023-08-21 21:35:49 +02:00
|
|
|
structDialogs += fxconv.u32( int(d[ "isQuestion" ] ) )
|
2023-08-21 22:53:33 +02:00
|
|
|
structDialogs += fxconv.string( d[ "choice" ].replace('$', chr(0)) )
|
|
|
|
structDialogs += fxconv.string( d[ "conclusion1" ] )
|
2023-08-21 21:35:49 +02:00
|
|
|
structDialogs += fxconv.u32( int(d[ "next1" ] ) )
|
2023-08-21 22:53:33 +02:00
|
|
|
structDialogs += fxconv.string( d[ "conclusion2" ] )
|
2023-08-21 21:35:49 +02:00
|
|
|
structDialogs += fxconv.u32( int(d[ "next2" ] ) )
|
|
|
|
structDialogs += fxconv.u32( int(d[ "nextOther" ] ) )
|
|
|
|
|
2023-08-22 10:39:37 +02:00
|
|
|
return nbdialogs, structDialogs
|
2023-08-21 21:35:49 +02:00
|
|
|
|
2023-08-22 10:39:37 +02:00
|
|
|
#fxconv.elf(structDialogs, output, "_" + params["name"], **target)
|