|
Posted by metlslime on 2007/08/08 04:57:56 |
This is a counterpart to the "Mapping Help" thread. If you need help with QuakeC coding, or questions about how to do some engine modification, this is the place for you! We've got a few coders here on the forum and hopefully someone knows the answer. |
|
|
It's Been A While
#2525 posted by Qmaster on 2018/05/17 17:24:11
I haven't messed with Gyro in ages, but you might be able to take a look at how things were done using it in the SMC (Small Mod Compilation) created by sevin: http://quakeone.com/forum/quake-mod-releases/finished-works/6241-small-mod-compilatio
I'm stuck in an airport for a few hours so maybe I can poke around and let you know what I find.
..
#2526 posted by ijazz3 on 2018/05/25 10:27:51
bumpity bump bump
I Haven't Found A Working Link For Gyro Yet So...
#2527 posted by Qmaster on 2018/05/25 22:17:45
..a Mammuth Sized Shambler ! Headed To Preach..but Not Only
#2528 posted by komagama on 2018/06/09 00:49:46
Hi.. is it possible to create a huge Shambler (10 times the player size) ? What about bouncing-box issues ?
What qc changes needed ?
My map is called "Hunt 4 The Great White"
Komagama Muth
#2529 posted by madfox on 2018/06/09 03:30:39
Here's one. I made it eight times as big as the original.
Bouncing box extends automaticly.
If you use it without changes it flashes from its heels, and can only be hit when you hit it in its foot.
Just for try out, replace it in your progs with the original one and give it enough space.
The best way to make it addepted is by mulyiplying all counts of walk and run with 8. Also the magic lightning will need that number.
I included a mdl and a probable qc, no idea what will happen.
Didn't test the beast.
Some Adds
#2530 posted by madfox on 2018/06/09 04:07:51
I made a quick try and it seems to work, unless...,
you delete the original shambler out of your qc as all names are the same.
If you need small shamblers too, then give all related names for shambler in the new qc file another name, ie mamuth.
The bouncing box doesn't fit, it's way too small. Although I altered them too. Also the lightning emerges so high its inside its corps. So some alterations are needed here.
I was afraid the skin would look horrible, but that isn't the case.
I just can't escape from it as it moves that incredible fast.
Bouncing Box?
#2531 posted by Qmaster on 2018/06/09 14:23:26
Is that what we are calling the bullet interactable box now to distinguish from the physical box?
BounDing box max is hull 2 size of 64x64x80. However, setting the size of a monster to something larger in qc allows bullets to hit it at the larger size even though its physical size is the same. E.g. It could still fit in 81 unit high spaces however, and have its model sticking through the ceiling.
Oh Thanks To All.. Another (fancy) Question
#2532 posted by komagama on 2018/06/09 18:35:41
supposing I make a total conversion eligible for sale commercially.. what exactly is gpl ?
-I've read that qc code(progs.dat)also is an "asset" because is read by engine as data ?!
Then should I rewrite it all from scratch ?
-And what about the .exe's(glquake.exe,winquake.exe,darkplaces.exe,fitzquake.exe) since are not included in id released source code !
My Name Is Madfox And I Want My Money Back!
#2533 posted by madfox on 2018/06/09 22:21:53
GPL is a copyleft license for software, devised by Richard M. Stallman of GNU, who (in short) states that you can use the software to do what you want, including customizing and selling, provided you pass that right on to others and the author. (s) of the software. In concrete terms, the foregoing means that if you want to distribute software that has been published under the GPL, the source code will have to be added. This source code may then be further distributed under the GPL. Anyone can choose to publish his or her program under the terms of this license.
You don't need to rewrite it, as long as you include the code you might have read the scripts that are in the qc that state:
Copyright (C) 1996-1997 Id Software, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
See file, 'COPYING', for details.
But seriously komagama, I thought you were mapping for fun. I understand your considderation of making a commercial project but then why not start with something like gamemaker?
I'm mapping for several years now, I have only the love for the game, and when I ever had the intention to sit on iD's hat for making a commercial addon I probably had stopped many years ago.
Don't get me wrong, I don't want to disappoint you, but I've seen it before. People with the best intentions to make a coin out of hard earned worked getting screwed off by others who just wanted a piece of the (qc)ake.
Anyway, it is your decision. But watch out, I would love to play your map for free, but if you would ask money for it I would become so critical you wouldn't like your own map anymore.
So I'll start with ten bitcoins for the advice I gave.
:P
Just Kidding Komagama
#2534 posted by madfox on 2018/06/09 23:33:37
You can find the correkted file here.
It's the mamuth.mdl of the super shambler, the h_mamuth.mdl of its head and the mamuth.qc.
If you compile this file you can use it with the normal shamblers in your map, with this result. The bouncing box is right his size.
Only thing left is tweaking the size of its lightning, but I supose it will always be beyond the player view, due to its size.
Succes with it, curious to your map.
Thank Madfox.. But
#2535 posted by komagama on 2018/06/10 06:36:51
i'm not a noob in game-designing, sorry if I gave that impression.. Fact is there's something in gpl quake code that I cannot understand:
help me if you can:
-may I use big portions of Id qc unmodified (ai.qc, buttons.qc, monsters.qc) ? Carmack stated that you can create your standalone game based upon that code..
D'aww!
#2536 posted by Esrael on 2018/06/10 08:18:00
Would you look at that mammuth shambler! :3c It's so big and clumsy. He'll never be able to reach the "mouseholes" the player escapes into.
Which reminds me, compared to the regular shambler, has the movement speed been increased for this adorable little monstrosity?
Nice work, btw! ;)
Right
#2537 posted by madfox on 2018/06/10 21:11:47
@komagama- well, I'm a noob in gpl code, so I can't help you out.
Maybe someone else.
@Esrael- Mouseholes? That's where the little Shambs come in.
I'm more concerned when it dies the player walks 96 units in shamb space nothingness.
And as I wrote: I just can't escape from it as it moves that incredible fast.
Komagama
#2538 posted by mankrip on 2018/06/10 21:21:07
The QC code is not under the GPL. However, when I talked to someone at id before they were sold to Bethesda, they expected people to handle the original QC code in the same way as the engine code, which means keeping the source open.
You Heard The Man
#2539 posted by Qmaster on 2018/06/10 21:22:58
QC please! Chop chop. That means you. Haha.
Broken English
#2540 posted by madfox on 2018/06/11 04:43:38
mamuth groans I'm too Q to see.
Oh.. My Headache..
#2541 posted by komagama on 2018/06/12 02:40:00
now I know why nobody made commercial tc based upon this engine.. aha
Anyway the official released sourcecode.zip from github includes qc files so they must be gpl as well :)
Ogre
#2542 posted by madfox on 2018/06/13 02:45:08
The ogre has a pull pose of 11 frames which won't be used in the qc. What should have been its purpose?
I'm retrieving the Qtest1 qc, without any luck.
I'm using the one from Megalol, which luckely has a progs.src
Only problem is that it is casting more than eighty nine warnings.
It seems to me that a lot of it is just a replacement of the original qc.
I spent a whole evening just to get rid of the first moveangles to moveangles2. Is it realy that bunch of spagetthi?
Projecting Text To A Quad
#2543 posted by killpixel on 2018/06/27 21:53:52
are there any examples out there of projecting text to a mesh using an engine like DP or FTE? Or even just dynamically creating a texture and assigning it to a mesh?
Yes
#2544 posted by madfox on 2018/06/27 23:03:08
With an animationmaster it is simple, but I know you won't have obviously. You might try max3d or gmax. Here's an example I made.
Or hand me the file and I can see what I can do for you, beer me up, scotty!
That's Pretty Cool
#2545 posted by killpixel on 2018/06/27 23:15:40
but not what I meant :P sorry, I didn't explain clearly.
I meant taking plain text from a text file and projecting it onto a quad or converting it to a texture dynamically to be assigned to a mesh. If that makes sense.
#2546 posted by Qmaster on 2018/06/28 04:15:00
Text?
Blender can make polygonal text...not quads though.
Best bet might be to make an alphamasked sheet texture with all letters and numbers on it...then assign UV to uach letter for quads.
For quake mdl format you might be able to have 1 quad for each letter/number/rune and have only one quad visible per frame....then in-game you could set the frame number for the letter, but that's a boatload of work.
#2547 posted by Spike on 2018/06/28 05:58:52
If you know the direction your quad faces and the tangent+other one then you can generate the text from csqc with beginpolygon in 3d space.
If its co-planar, you'll need to use stuff like polygonoffset and/or pay attention to shader sort ordering.
This will work in both FTE and DP. The shader tricks may not, however.
Alternatively, a shader with 'deformvertexes textN' will replace a quad surface with the text in the r_shadertext_N cvar(s) (the shader's texture should be a 16*16 grid of chars).
This will only work in FTE.
The third option is to use render-to-texture, and to draw your text that way (which means it can also support unicode etc easily, or even other scenes). You can then use .forceshader or whatever to wrap it over even non-planar surfaces on some target entity.
'map $rt:foo' in your shader, possibly via shaderforname.
setviewprop(VF_RT_DESTCOLOUR, "foo", 1, [width,height]);drawstuff(); setviewprop(VF_RT_DESTCOLOUR, __NULL__);
This will only work in FTE.
Or you can use r_uploadimage and scribble over a texture from QC (which basically requires pointers+ints and masking), FTE-only.
You can also use rtlight cubemaps to dynamically project a texture, but this assumes you've a number of prior cubemaps to select between. You really don't want to use one per letter.
You could also use one sprite per letter (or more realistically one sprite-frame per). Will at least scale better than rtlights...
#2548 posted by killpixel on 2018/06/28 16:37:15
@qmaster - that sounds... crazy :P
@spike - exactly the info I was looking for, thanks!
Sprite
#2549 posted by madfox on 2018/07/04 07:47:35
I'm adding old sprites to Quake1Test maps.
I added some lines on misc.qc for a new light_large_flame,
and to world.qc and it comes up in game.
Only eddict is : R_drawsprite: there is no such frame 1,
|
|
You must be logged in to post in this thread.
|
Website copyright © 2002-2024 John Fitzgibbons. All posts are copyright their respective authors.
|
|