Importing Quake LIve Maps / Editing Quake Live Maps

374 replies [Last post]
boogiepop
Offline
Joined: Feb 2014
Posts:
Re: Importing Quake LIve Maps / Editing Quake Live Maps

LOL ! I did all this work by myself for last 4 days. If only i had read this before. Thanks for the work guys.

V1979
V1979's picture
Offline
Joined: Nov 2011
Posts:
Re: Importing Quake LIve Maps / Editing Quake Live Maps

While creating citycrossings.aas I met such a problem (log below):

BSPC version 2.1h, Oct 7 2012 15:47:47
optimize = true
forcesidesvisible = true
threads = 6
bsp2aas: D:\games\quake3\baseq3\ql-maps\maps\citycrossingz.bsp to D:\games\quake3\baseq3\ql-maps\maps\citycrossingz.aas
-- Q3_LoadMapFromBSP --
Loading map from D:\games\quake3\baseq3\ql-maps\maps\citycrossingz.bsp...
43412 triangles
15304 patch tris
creating planar surface planes...
searching visible brush sides...
0 brush sides70985 brush sides textured out of 70985
BSP tree created in 0 seconds
------- Prune Nodes --------
0 pruned nodes
---- Node Portalization ----
empty BSP tree

I couldn't find the right answer how to solve this problem. Does anybody know?

V1979
V1979's picture
Offline
Joined: Nov 2011
Posts:
Re: Importing Quake LIve Maps / Editing Quake Live Maps

Sorry, - I can't upload to any server (for some technical reasons) updated files of QL maps project. All previous links aren't available.

mzi.ql
mzi's picture
Offline
Joined: Apr 2010
Posts:
Re: Importing Quake LIve Maps / Editing Quake Live Maps

man that's sux.. weird thing Confused

boogiepop
Offline
Joined: Feb 2014
Posts:
Re: Importing Quake LIve Maps / Editing Quake Live Maps

here is the python script to convert bsp v46 to 47 convertor if any1 is interested .
fixes version tag converts pngs to tga through commandline tool and also fixes shader novlcollapse issue

import tempfile
import zipfile
import shutil
import os
import sys
from subprocess import Popen
 
zipfname=sys.argv[1]
 
tempdir = tempfile.mkdtemp()
try:
	tempname = os.path.join(tempdir, 'new.zip')
	with zipfile.ZipFile(zipfname, 'r') as zipread:
		with zipfile.ZipFile(tempname, 'w') as zipwrite:
			for item in zipread.infolist():
				data = zipread.read(item.filename)
				if item.filename [-3:]=="bsp":
					data=data[:4]+chr(0x2e)+data[5:]
					print item.filename + " version fixed to 46"
				if item.filename [-3:]=="png" and False:
					tempimg= os.path.join(tempdir, item.filename)
					zipread.extract(item.filename,tempdir)
					with open(os.devnull, 'w') as fp:
						cmd = Popen(("png2tga -c %s %s" % (tempimg,os.path.dirname(tempimg))), stdout=fp, shell=False)
					cmd.communicate()
					item.filename=item.filename[:-3]+"tga"
					img=open(tempimg[:-3]+"tga")
					data=img.read()
					img.close()
					print item.filename + " converted from png format"
				if item.filename [-6:]=="shader":
					zipread.extract(item.filename,tempdir)
					data=""
					with open(os.path.join(tempdir, item.filename)) as f:
						for line in f:
							if "novlcollapse" in line:
								print "Shader: " + item.filename + " fixed in line: " + line
								continue
							data+=line+"\n"
					os.remove(os.path.join(tempdir, item.filename))
				zipwrite.writestr(item, data )
	shutil.move(tempname, zipfname)
finally:
	shutil.rmtree(tempdir)

V1979
V1979's picture
Offline
Joined: Nov 2011
Posts:
Re: Importing Quake LIve Maps / Editing Quake Live Maps

I do it via HEX Editor

V1979
V1979's picture
Offline
Joined: Nov 2011
Posts:
Re: Importing Quake LIve Maps / Editing Quake Live Maps

At last I succeeded in uploading files - you can find them here

http://www.excessiveplus.net/forums/thread/quake-live-maps-no-comments-here

For those who have the previous release I can present a smaller set (I'll place it later).

mzi.ql
mzi's picture
Offline
Joined: Apr 2010
Posts:
Re: Importing Quake LIve Maps / Editing Quake Live Maps

Thanks mate Winking

V1979
V1979's picture
Offline
Joined: Nov 2011
Posts:
Re: Importing Quake LIve Maps / Editing Quake Live Maps

http://files.mail.ru/311D0DAF511F4501ACDC4C63152AF1B5

link to QLPP20 files only - for those who already have the previous release,

boogiepop
Offline
Joined: Feb 2014
Posts:
Re: Importing Quake LIve Maps / Editing Quake Live Maps
V1979 wrote:

I do it via HEX Editor

thats also ok but its handy to have tool to convert bunch of maps.if u need any specific automater i can help you just pm or msg here. i am not a guru about bsp and pk3 stuff