How do I write a large file? [Probably Complicated]

0 favourites
  • 2 posts
From the Asset Store
Convert multiple Excel files into JSON files and import them into construct3.
  • So I want the program to write a file, the output looking something like

    viewsettings
    {
    	"bSnapToGrid" "1"
    	"bShowGrid" "1"
    	"bShowLogicalGrid" "0"
    	"nGridSpacing" "64"
    	"bShow3DGrid" "0"
    }
    world
    {
    	"id" "1"
    	"mapversion" "1"
    	"classname" "worldspawn"
    	"skyname" "sky_halflife3a"
    	"maxpropscreenwidth" "-1"
    	"detailvbsp" "detail.vbsp"
    	"detailmaterial" "detail/detailsprites"
    	solid
    	{
    		"id" "2"
    		side
    		{
    			"id" "1"
    			"plane" "(-128 128 0) (128 128 0) (128 -128 0)"
    			"material" "HL3/GROUNDSNOW02"
    			"uaxis" "[1 0 0 0] 0.25"
    			"vaxis" "[0 -1 0 0] 0.25"
    			"rotation" "0"
    			"lightmapscale" "16"
    			"smoothing_groups" "0"
    		}
    		editor
    		{
    			"color" "0 144 145"
    			"visgroupshown" "1"
    			"visgroupautoshown" "1"
    		}
    	}
    }
    entity
    {
    	"id" "10"
    	"classname" "prop_static"
    	"angles" "0 0 0"
    	"fademindist" "-1"
    	"fadescale" "1"
    	"model" "models/props/d1_crash/hl3copter/helicopter_destroyedamdl"
    	"renderamt" "255"
    	"rendercolor" "255 255 255"
    	"skin" "1"
    	"solid" "6"
    	"origin" "0 0 0"
    	editor
    	{
    		"color" "255 255 0"
    		"visgroupshown" "1"
    		"visgroupautoshown" "1"
    		"logicalpos" "[0 500]"
    	}
    }
    cameras
    {
    	"activecamera" "-1"
    }
    cordons
    {
    	"active" "0"
    }
    [/code:3sikoiwt]
    
    But...
    
    Consider the view settings,world,entity,ect. as separate "tabs" that can have more information posted in-between them.
    
    As in "entity" can have 5 similar looking things, but not at the end, only in that tab. These similar looking "things" can be the sane but have different information in them, so it could also look like this
    
    [code:3sikoiwt]side
    		{
    			"id" "1"
    			"plane" "(NUMBERS) (DIGITS) (NUMERALS)"
    			"material" "PUTSOMETHINGHERE"
    			"uaxis" "[1 0 0 0] 0.25"
    			"vaxis" "[0 -1 0 0] 0.25"
    			"rotation" "0"
    			"lightmapscale" "16"
    			"smoothing_groups" "0"
    		}
    side
    		{
    			"id" "1"
    			"plane" "(-128 128 0) (128 128 0) (128 -128 0)"
    			"material" "SOMETHINGDIFF"
    			"uaxis" "[1 0 0 0] 0.25"
    			"vaxis" "[0 -1 0 0] 0.25"
    			"rotation" "0"
    			"lightmapscale" "16"
    			"smoothing_groups" "0"
    		}[/code:3sikoiwt]
    And after ALL THAT... write a file containing the information.
    Is this possible?
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You need those.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)