[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - BSP Quake Editor - source code?

BSP Quake Editor - source code?

Discuss the construction of maps and the tools to create maps for 3D games.

Moderator: InsideQC Admins

Re: BSP Quake Editor - source code?

Postby Chip » Mon Feb 27, 2012 3:48 pm





Fear not the dark, but what the dark hides.
User avatar
Chip
 
Posts: 575
Joined: Wed Jan 21, 2009 9:12 am
Location: Dublin, Ireland

Re: BSP Quake Editor - source code?

Postby revelator » Mon Feb 27, 2012 8:01 pm

a 64 bit build should be possible but there are a few quirks. int's etc dont have the same size so we use intptr_t etc.

i converted most of bsp allready to C::B + mingw64 but theres one item im having a bit of trouble with ->

this part in utils.h throws an error

inline ~list() {
reset<T>();
};


error: no matching function for call to 'list<setinfo_value*>::reset()'

also it rears its head later on in the compilation. Starting to wonder if gcc's headers declare reset as something else ?.
Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: BSP Quake Editor - source code?

Postby revelator » Mon Feb 27, 2012 10:55 pm

ok i nailed why the C++ headers bark on mingw. recent mingw (gcc4) uses a much stricter checking than old version (gcc3) so a lot and i mean a lot needs to be changed. the good thing though is that it will most likely make it a whole heap more stable.
you could also get the old gcc based mingw compiler and it would probably work allmost out of the box if you have the missing items like the directx sdk for mingw.

example of things that barf on mingw gcc4

template <typename T> you cannot use that inside a class instead use template<T> its ok outside a class though.

or this

class somename {
somename::somefunction;
}

is also bad, it needs to be

class somename {
somefunction;
}

or you get extra qualification errors.

besides that gcc4 really doesnt like anonymous types all class calls must have matching function types.

you can get around some of the nasties by using -fpermissive in the compiler flags but you will most likely run in to problems later on.
Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: BSP Quake Editor - source code?

Postby Chip » Tue Feb 28, 2012 5:42 am

I know about these errors. The class templates need to be renamed as T1, T2. That's what I did in my source to get rid of the errors. Also, documentation says that you cannot declare a class with name T (for example) inside another class with the same name (T). That file, util.h has some ugly code inside.




Fear not the dark, but what the dark hides.
User avatar
Chip
 
Posts: 575
Joined: Wed Jan 21, 2009 9:12 am
Location: Dublin, Ireland

Re: BSP Quake Editor - source code?

Postby revelator » Tue Feb 28, 2012 9:13 am

very very ugly indeed :) im fixing as much as i can also but a few places i might need a hand from the gcc guys. lets see how it goes down.
Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: BSP Quake Editor - source code?

Postby revelator » Wed Feb 29, 2012 3:45 pm

ok first working version finished :) do you have somewhere i can mail it to you ? or is it ok to make public.
Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: BSP Quake Editor - source code?

Postby Chip » Wed Feb 29, 2012 6:38 pm





Fear not the dark, but what the dark hides.
User avatar
Chip
 
Posts: 575
Joined: Wed Jan 21, 2009 9:12 am
Location: Dublin, Ireland

Re: BSP Quake Editor - source code?

Postby revelator » Wed Feb 29, 2012 6:52 pm

Oki :) uploaded.
Lets hope GB likes this ;)
Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: BSP Quake Editor - source code?

Postby revelator » Wed Feb 29, 2012 8:19 pm

If he approves theres loads to be done still :)
a lot of the c++ code uses deprecated functions and while i am able to compile a 64 bit executable it refuses to run (beforementioned types that dont fit a 64 bit arch).
so if it where open to the community the work would be done in a snap im sure :).

Next build cleaned a bit more and libpng\zlib now linked static. Libpng and zlib was updated to a later version. Changed build version to 0.96e.
Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: BSP Quake Editor - source code?

Postby goldenboy » Thu Mar 01, 2012 4:40 am

It is Yahn's editor, in the end.

My last email might have gotten caught in Valve's spam filter. I just mailed Yahn again and asked if it was OK to host the code somewhere and what the license would be.

Last time he replied pretty quickly...

I see you have made good progress. Do you have a repo set up?

If not, icculus would probably host it.

If we hear nothing from Yahn until Sunday, I'd say go on and upload what you have to Quaketastic or whatever.

What source is your new stuff based on? The Paintball one? ViciouZ' one? Or version 96d by Sort?
User avatar
goldenboy
 
Posts: 924
Joined: Fri Sep 05, 2008 11:04 pm
Location: Kiel

Re: BSP Quake Editor - source code?

Postby Chip » Thu Mar 01, 2012 5:09 am





Fear not the dark, but what the dark hides.
User avatar
Chip
 
Posts: 575
Joined: Wed Jan 21, 2009 9:12 am
Location: Dublin, Ireland

Re: BSP Quake Editor - source code?

Postby goldenboy » Thu Mar 01, 2012 5:35 am

Good.
User avatar
goldenboy
 
Posts: 924
Joined: Fri Sep 05, 2008 11:04 pm
Location: Kiel

Re: BSP Quake Editor - source code?

Postby revelator » Thu Mar 01, 2012 11:53 am

no repo yet, i wanted to wait untill everything was clear with yahn.
code is now fully mingw compatible, took me most night but it compiles without -fpermissive now and i fixed all the warnings.
it runs and seems to work ok besides one little bugger. the optimized builds cannot open pak files :S still investigating.
Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: BSP Quake Editor - source code?

Postby revelator » Thu Mar 01, 2012 8:40 pm

heh the pak problem is actually not a bug but a glitch it seems. if the game dir is where it should be it works but if selecting a pak that is not in the path in its ini then it fails. funny thing though the debug version disregards that.
I skimmed the code and it might be of interrest for mh. here i think of a built in quake editor. the code is in C++ and should be adaptable to his directq source :) theres a ton of unfinshed code though which im cleaning up atm (mostly related to lua scripting).
also a few places with disabled code that didnt work or didnt work well :S question is should i leave it so someone can fix those or would it be better to start fresh on those `?
Productivity is a state of mind.
User avatar
revelator
 
Posts: 2605
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Re: BSP Quake Editor - source code?

Postby mh » Thu Mar 01, 2012 10:25 pm

I'm not personally interested in an integrated Quake editor (I don't view DirectQ as either a mappers or a modders engine) but it would be a neat project for someone who is. :D
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

PreviousNext

Return to Mapping

Who is online

Users browsing this forum: No registered users and 2 guests