Announcement

Collapse
No announcement yet.

Introduce me to quake C someone, please?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Introduce me to quake C someone, please?

    Hi!
    I'm new here and I wanted to ask some questions regarding Quake C
    I want to know how can I make a custom HUD and Menu?
    Also, I want to re-write the weapons system so I can make ammo reserves, reloading, spaying stuff, etc.
    I'll appreciate any support.
    Best regards!

  • #2
    Thanks for advice! I'll try to find some info there.

    Comment


    • #3
      hello KEN,
      a notice: just with some engines you can add new HUDS and menus, engines that support CSQC like:
      FTE FTE - Quake Wiki
      darkplaces: DarkPlaces - Quake Wiki
      RMQ : http://svn.icculus.org/remakequake/engine/ (partial support)
      etc ( i do not know if another engines supports csqc)
      the invasion has begun! hide your children, grab the guns, and pack sandwiches.

      syluxman2803

      Comment


      • #4
        What is CSQC? I don't really get it, lol.
        And I use DarkPlaces for my project.
        Could you send me the link where I can download CSQC's source code as well?
        Last edited by KenTheModder; 09-26-2015, 07:22 AM.

        Comment


        • #5
          What is the project you want to do?
          Contradiction is truth. Fear is freedom. Rights are privileges. Job is a commodity. Ignorance is strength.

          Comment


          • #6
            It is going to be an indie standalone game I guess. On darkplaces engine. Co-op and singleplayer story.

            Comment


            • #7
              csqc = client side quake c. This is primarily used to create things that do not change gameplay (like HUD's, radar, .... graphical information/menus)

              svqc (or what most people simply call QC) = server side quake c and is primarily used for game logic

              I believe there is an overlap of possibilities between csqc and svqc but, their is more to know and understand as to whether possible means practical.

              Comment


              • #8
                I see. Where can I get the source code of client side quake C?

                Comment


                • #9
                  The simplest solution is from the Small Mod Compilation, it includes the source for Quake and the two official expansions.

                  And of course it contains the SMC itself, that is plethora of ideas! Including summoning new monsters, cloning, blood splats...
                  Last edited by ezzetabi; 09-27-2015, 06:07 AM.
                  Contradiction is truth. Fear is freedom. Rights are privileges. Job is a commodity. Ignorance is strength.

                  Comment


                  • #10
                    @ezzetabi,
                    Do you mean I have to de-compile some small mod and get the CSQC files from there? I'm such a noob at all this stuff.

                    Comment


                    • #11
                      Wait up, looks like I've found the client side code at DarkPlaces mod build. It's located at the folder "Client" inside QC folder. That's the content of that mod's CSQC right?

                      Comment


                      • #12
                        Sorry, I do not remember where the code was stored. But the source is there no deassembly or anything needed.

                        Seek for a file called '*knight*qc' and you should find the directory. If does not work try to drop the qc or or seek for other monster names like tarbaby.
                        Contradiction is truth. Fear is freedom. Rights are privileges. Job is a commodity. Ignorance is strength.

                        Comment


                        • #13
                          Yeah, I've found them all, the code files. Recently I've started to compile the code for client's part and the compiler is giving me the error message. It says that some file has errors in loads of lines... Why is that? I didn't even edit any part of the code, just doing a test run...
                          That's what it gives to me:
                          Source file: progs.src
                          outputfile: ../../csprogs.dat
                          compiling ../dpdefs/csprogsdefs.qc
                          ../dpdefs/csprogsdefs.qc:945: error: getsurfacenumpoints redeclared, prev instance is in ../dpdefs/csprogsdefs.qc
                          ../dpdefs/csprogsdefs.qc:558: getsurfacenumpoints is defined here
                          ../dpdefs/csprogsdefs.qc:946: error: getsurfacepoint redeclared, prev instance is in ../dpdefs/csprogsdefs.qc
                          ../dpdefs/csprogsdefs.qc:559: getsurfacepoint is defined here
                          ../dpdefs/csprogsdefs.qc:947: error: getsurfacenormal redeclared, prev instance is in ../dpdefs/csprogsdefs.qc
                          ../dpdefs/csprogsdefs.qc:560: getsurfacenormal is defined here
                          ../dpdefs/csprogsdefs.qc:948: error: getsurfacetexture redeclared, prev instance is in ../dpdefs/csprogsdefs.qc
                          ../dpdefs/csprogsdefs.qc:561: getsurfacetexture is defined here
                          ../dpdefs/csprogsdefs.qc:949: error: getsurfacenearpoint redeclared, prev instance is in ../dpdefs/csprogsdefs.qc
                          ../dpdefs/csprogsdefs.qc:562: getsurfacenearpoint is defined here
                          ../dpdefs/csprogsdefs.qc:950: error: getsurfaceclippedpoint redeclared, prev instance is in ../dpdefs/csprogsdefs.qc
                          ../dpdefs/csprogsdefs.qc:563: getsurfaceclippedpoint is defined here
                          ../dpdefs/csprogsdefs.qc:951: error: getsurfacepointattribute redeclared, prev instance is in ../dpdefs/csprogsdefs.qc
                          ../dpdefs/csprogsdefs.qc:608: getsurfacepointattribute is defined here
                          ../dpdefs/csprogsdefs.qc:963: error: asin redeclared, prev instance is in ../dpdefs/csprogsdefs.qc
                          ../dpdefs/csprogsdefs.qc:592: asin is defined here
                          ../dpdefs/csprogsdefs.qc:964: error: acos redeclared, prev instance is in ../dpdefs/csprogsdefs.qc
                          ../dpdefs/csprogsdefs.qc:593: acos is defined here
                          ../dpdefs/csprogsdefs.qc:965: error: atan redeclared, prev instance is in ../dpdefs/csprogsdefs.qc
                          ../dpdefs/csprogsdefs.qc:594: atan is defined here
                          ../dpdefs/csprogsdefs.qc:966: error: atan2 redeclared, prev instance is in ../dpdefs/csprogsdefs.qc
                          ../dpdefs/csprogsdefs.qc:595: atan2 is defined here

                          ************ ERROR ************
                          Errors have occured

                          Error in ../dpdefs/csprogsdefs.qc on line 966

                          Comment


                          • #14
                            Those errors are telling you that vars are being redeclared. There are 2 possibilities here.

                            1) the var is being declared more than once globally (this is probably the real problem)
                            2) MAYBE a function isn't closed and it's running into another function with an identically named local var.

                            I'm doubting #2 cause the compiler would likely throw a different error.

                            You could probably assume #1 and simply delete subsequent var declarations.

                            I've compiled that csprogs before without those errors. Are you using FTEQCC to compile? If not, give it a try.
                            Last edited by Anubis; 09-27-2015, 12:53 PM.

                            Comment


                            • #15
                              a little suggestion:
                              Csqc is a bit more hard than ssqc, if you are new in qc i suggest to start doing the main "game logic" part. After you can do the csqc work. Aniway this thread will help you

                              InsideQC Forums • View topic - Getting Started with CSQC
                              the invasion has begun! hide your children, grab the guns, and pack sandwiches.

                              syluxman2803

                              Comment

                              Working...
                              X