Programe - Sprites

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Sat Oct 13, 2007 10:06 am

  • Does any one know what program is needed to open the sp2 file?

    Also, if I was to add one, how would I go about that.
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Sat Oct 13, 2007 12:32 pm

Sat Oct 13, 2007 12:45 pm

  • Thanks.

    The reason I only breifly looked wa because I had no idea where to start.
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Sat Oct 13, 2007 2:19 pm

  • i wonder why you didnt discover it yourself
    that was a joke
    sprite tool inside modeltools20070412.zip is not obvious + i have no idea if there is some written info about this file in the internet :)
    User avatar
    Morphed
    Alien
     
    Posts: 197
    Joined: Tue Feb 28, 2006 10:41 pm
    Location: Poland

Sat Oct 13, 2007 2:27 pm

  • Nexuiz 2.4 won't use SP2s any more, as the sprites will get a new projection type and SP2 does not allow spefying that. The new format will be SPR32. A tool to make SPR32 files has been written by me, but it's in Perl.

    The tool to make these files is contained in the Nexuiz sprites directory for now, as it is quite small and won't waste much space there.

    Also, there will be a script that calls Inkscape (open source vector graphics app) to make the sprites seen in Nexuiz, so you can just add your own sprite to the list in that file, regenerate, and use it. They are defined like this:

    Code: Select all
    sprite bluebase           0000ff 000000 "BLUE BASE"
    sprite danger             ff0000 ffff00 "DANGER"
    sprite flagcarrier        ffff00 000000 "FLAG CARRIER"
    sprite helpme             ffff00 ff0000 "HELP ME"
    sprite here               00ff00 000000 "HERE"
    sprite key-dropped        00ffff 000000 "DROPPED KEY"
    sprite keycarrier-blue    0000ff 000000 "KEY CARRIER"
    sprite keycarrier-finish  00ffff 000000 "RUN HERE"
    sprite keycarrier-friend  00ff00 000000 "KEY CARRIER"
    sprite keycarrier-pink    ff00ff 000000 "KEY CARRIER"
    sprite keycarrier-red     ff0000 000000 "KEY CARRIER"
    sprite keycarrier-yellow  ffff00 000000 "KEY CARRIER"
    sprite redbase            ff0000 000000 "RED BASE"
    sprite waypoint           008080 000000 "WAYPOINT"
    |
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Sun Oct 14, 2007 4:53 am

  • Thanks. The zip file doesn't do anything, all it does it open command prompt.

    This is what I want to do.
    I want to create a sprite that floats above your head for the game. I think the way I'll do this is by copying Flag carrier sprites and replacing the tga file with mine and rename them both.

    This is for GT, like a playermodel, but different. I know that only people on your team would be able to see it.

    This is still very unclear to me, could someone step me through what I have to do.
    - How to define the command (what command will make it show)
    - How to modify how long it's visible for
    - What to modify the files needed to be modifyed with
    - Where the files are located (Is it in data/dlcache/waypoint.pk3)

    Thanks for the help.
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Sun Oct 14, 2007 8:11 am

  • You expect too much, what you want to do is quite complicated.

    The steps that you would ACTUALLY need to take to implement this are:

    • Make a new sprite. And yes, the tool in the zip file does something - but it is a command line tool. Won't work by double clicking.
    • Edit cl_impulse.c to make an impulse that displays the sprite. If it should be just temporarily attached like HELP ME, just use the WaypointSprite_Attach function for it. If not, call WaypointSprite_Spawn directly (that would also make it possible to show the sprite to everyone).
    • |Edit waypointsprites.qc to add a precache_model() line for your new sprite to the others.


    What WaypointSprite_Attach actually does, is:

    Code: Select all
    WaypointSprite_Spawn("spritename", [how long it should live, or 0 for forever], [from how far it should be visible, or 0 for the whole map], self, '0 0 64', world, [team who shall see the sprite, or 0 for all teams], self, waypointsprite_attached, FALSE);
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Sun Oct 14, 2007 8:17 am

  • Thank you for the help, I understand what I have to do better now.

    Where is this file located? cl_impulse.c I've looked in data20070531.pk3, enginesource20070531.zip and gamesource20070531.zip. Have I even looked in the right places? Or have I over looked it?

    But my final question about this for a while is, how do I use the command line tool? what steps should I take? Sorry about this question.
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Sun Oct 14, 2007 9:12 am

  • The files I was referring to are in gamesource...zip and need to be compiled using fteqcc.

    Well... open a cmd prompt and run modeltool from there. It will tell you how to actually use it.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Sun Oct 14, 2007 9:21 am

  • I can only find cl_impulse.qc
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Sun Oct 14, 2007 9:54 am

  • yes, .c was a typo. .qc is right.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Sun Oct 14, 2007 11:04 am

  • Now I need more help! how do I execute the command line, could someone step me through using the command line thing?
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Sun Oct 14, 2007 4:35 pm

  • No, it's simply too complicated if you don't try on your own. Can't spoonfeed you, that would take LOTS of pages of text. Rather use Google to get generic help about using command-line programs on Windows XP, and try it out yourself using modeltool.
    Last edited by divVerent on Mon Oct 15, 2007 6:37 am, edited 1 time in total.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Sun Oct 14, 2007 9:01 pm

  • Thank you for the help, it is greatly appreciated.

    Update:
    After some testing i have figured out how to get the command line tools working.
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Mon Oct 15, 2007 6:38 am

  • Also, the part of generating the sprites... there are surely some nice Windows programs for that. After all, isn't SP2 the sprite format used by Quake 2?
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Mon Oct 15, 2007 6:52 am

  • I just got my self confused :(

    The steps I am taking:
    1. Use the command line tool
    2. Edit cl_impulse
    - What do I add in there? Is it just WaypointSprite_........
    3. Edit waypointsprites.qc add a precache_model()
    - What is this "add a precache_model()" Is it the code?

    Also, with the code you have provided
    Code: Select all
    WaypointSprite_Spawn("spritename", [how long it should live, or 0 for forever], [from how far it should be visible, or 0 for the whole map]...................


    Where do I enter that?
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Mon Oct 15, 2007 7:29 am

  • In the cl_impulse.c file.

    Well, these files are written in QuakeC, so you need to be able to program in that or a similar language to do that (for example, C, C++, Java, JavaScript have all similar syntax). Maybe you know someone in GT who can do it for you.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Mon Oct 15, 2007 7:59 am

  • I say this because at the moment GT doesn't have someone who can do that type of stuff.

    I am going to do it, I think I'm not too bad at filtering script to find and or change what I need to.

    If there is someone who would like to help GT and knows what they are doing, by almenas leave a post, and I'll talk to you.
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Mon Oct 15, 2007 3:53 pm

  • Can you specify what exactly you want? That is, when should the waypoint come, what should trigger it, how long it should stay?

    Also, post the sprite you want as image file. Maybe I'll be able to make you that mod. But I need to know what EXACTLY you need.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Wed Oct 17, 2007 7:06 am

  • Thanks div.

    I would like would be a waypoint sprite visible for team which has [GT] above our head for the hole game. I would like the sprite to come when someone uses the command, i don't really mind what impulse it is or what command it is (like impulse 49).

    Here is what it looks like:
    Image

    Here is the tga file:
    http://download.agon.googlepages.com/gt_member.tga


    EDIT:
    What I would like (a clearer idea)

      1. The waypoint should come when the game starts - If this isn't possible, it should be when the command is entered in the console.
      2. What should trigger it... same as above.
      3. It should stay if possible for the hole game. If not as long as possible.
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Wed Oct 17, 2007 11:25 am

  • So basically, you want a "GT member" sprite. Should only other GT members see it, or everyone? Can you give me the exact color code included characters for [GT] - so I can make it work depending on such nicknames?

    Should it also show [GT] members of other teams?

    Actually... I think I am going to do it a bit differently... maybe I should make a (toggleable) special sprite for members of the same clan in the same team, defined by a list of nickname prefixes/suffixes in a config file on the server? It would only work in team matches, and maybe not using nickname prefix/suffix, but a client cvar for a clan "ID"... not sure yet.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Thu Oct 18, 2007 7:12 am

  • The 'GT' is #c0c0c0
    The '[ ]' is #f00608

    At the moment GT is debating whether or not it should be visible only to GT members, or to everyone on their team.

    I do like the ID idea. Will there be complications if there are new GT members? How will we add a new member, is it possible to have a website that allows auto-updating from there. I'm sure there will be a way to do it, but how...
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Thu Oct 18, 2007 7:51 am

  • No, the game does not use any auth server and won't get one. It should just require client and server, not more.

    So anyone would be able to "fake" the ID then.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Thu Oct 18, 2007 9:10 am

  • Alright, I'll take answer on what I think would be best for GT, the sprite should be visible for everyone on the team - Will this mess with the fps?

    I have added a post on the GT forum, so some people may decide differently.

    I do like the toggle idea. Could you please add that some where?
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Thu Oct 18, 2007 1:12 pm

  • Visible for everyone on the team... wouldn't like that. It just gets annoying, if other clans want that too... Do you REALLY want that? If I implement it, it won't be exclusively for GT.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Thu Oct 18, 2007 9:44 pm

  • oh, ok. Just for GT members to see. Shall we set it so that the member has to be on your team?

    I also just realised that I didn't give you the color code of the yellow arrow. The color code is #fffe03
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Sat Oct 20, 2007 10:40 am

  • Div, would you like to join GT?

    I have asked the members of GT and they would like you to be in GT. I know that you are in RBI but maybe RBI will let you in both. If so, we may be able to have a clan alliance with them.
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Sat Oct 20, 2007 12:37 pm

  • About GT... I'll think about it, but I have nothing against it for now...

    as for the sprites... I think I can start making a specification...

    - there can be sprites clanRBI.spr, clanGT.spr, etc. - let's see, maybe I can make a script to autogenerate them from the clan tag, because that way it would look best
    - cl_showclans 1 will show a sprite for anyone who sets cl_clan to one of the "installed" clan sprites (not just your own clan)
    - cl_clan GT sets you as a member of GT, and it will show GT above your head, and team mates also in GT will see you
    - If you select a clan that does not have a corresponding sprite on the server, it will simply not be shown

    These features will only work in teamplay, as it would give away enemies in DM.

    Would it be okay like that?

    Also... HELP ME, FLAG CARRIER etc. sprites should temporarily override clan tag display.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Sat Oct 20, 2007 10:23 pm

  • That is perfect. Thank you for helping GT.
    User avatar
    shaggy
    Alien trapper
     
    Posts: 419
    Joined: Tue Apr 03, 2007 6:12 am

Thu Dec 20, 2007 7:43 am

  • hey! that would be actually kinda cool if you could enable clan bubbles!

    another sprites question:
    can we use animated Halflife sprites?
    4m [PB] (amoebios)

    This is Your world.
    The mysterious Mr. 4m
    Forum addon
     
    Posts: 1402
    Joined: Wed Mar 01, 2006 6:03 pm
    Location: germany



Return to Nexuiz - Editing




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest