How to insert in pop Up Menu

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Wed Dec 17, 2008 10:20 am

  • I wana edit some code and add some pop Menu Before user enter the game!

    Thanks in advances!
    X-vEn-TuRE
    Xventure7
    Member
     
    Posts: 16
    Joined: Wed Dec 17, 2008 10:15 am
    Location: US

Wed Dec 17, 2008 3:24 pm

  • Take a look at qcsrc/menu.
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am

Thu Dec 18, 2008 8:40 am

  • i have added some portion of the code and compile two .src files, one in \menu and the other one in \server. it produces me two dat files one is menu.dat the other one is progs.dat. But then i don know how to run those file, so any suggestion???

    thanks alot to Alien for ur last reply :)
    X-vEn-TuRE
    Xventure7
    Member
     
    Posts: 16
    Joined: Wed Dec 17, 2008 10:15 am
    Location: US

Thu Dec 18, 2008 8:59 am

  • progs.dat is run if you create a new game, menu.dat is run immediately if you start Nexuiz
    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

Fri Dec 19, 2008 3:46 am

  • Hm....i have just started with new tutorial and it provides me with the source code of simple game which it to be compiled by ProQcc,

    i got the output : progs.dat from the compilation.

    Do i need to Quake.exe to run that file?
    X-vEn-TuRE
    Xventure7
    Member
     
    Posts: 16
    Joined: Wed Dec 17, 2008 10:15 am
    Location: US

Fri Dec 19, 2008 1:20 pm

  • Mhmmh, progs.dat are supported by all quake engines (if you don't use any extensions), cprogs.dat can be used in darkplaces and fteqw, menu.dat - only in darkplaces. So use darkplaces if you want to use menu and add pop-up.
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am

Mon Dec 22, 2008 9:06 am

  • thx alot Alien, i got some clue arldy :D hehe..
    X-vEn-TuRE
    Xventure7
    Member
     
    Posts: 16
    Joined: Wed Dec 17, 2008 10:15 am
    Location: US

Mon Dec 22, 2008 4:10 pm

Tue Dec 23, 2008 7:17 am

  • Thx too ninja, i have modified some codes at C:\enginesource20080511\darkplaces\menu.c by trying to add first pop up menu by refering to the link u provided, i got output: nexuiz.exe,

    i jus simply run it, but then a pop up msg come out:

    "You have reached this menu due to missing or unlocatable contentdata

    You may add consider adding -basedir/path/to/game to your line launch commandline"

    should i copy nexuiz.exe to replace the on in Nexuiz\nexuiz.exe


    Another thing is, i also try to modify some code sources\gamesource20080511\qcsrc\menu\menu.qc and then compile it with fteqcc,
    i get menu.dat output then i got back to root to run Nexuiz\nexuiz.exe
    Hmm...nothing change when i start.

    Thx for all replies :)
    X-vEn-TuRE
    Xventure7
    Member
     
    Posts: 16
    Joined: Wed Dec 17, 2008 10:15 am
    Location: US

Tue Dec 23, 2008 8:47 am

  • to be simple, now i got nexuiz.exe from the compilation of darkplace,

    and 3 files from the fteqcc compilation: csprogs.dat , menu.dat, progs.dat.

    so how to could i run nexuiz from these files.
    X-vEn-TuRE
    Xventure7
    Member
     
    Posts: 16
    Joined: Wed Dec 17, 2008 10:15 am
    Location: US

Tue Dec 23, 2008 2:57 pm

  • Copy menu.dat to data folder. You need to place your new darkplaces/nexuiz.exe into the main folder.
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am

Wed Dec 31, 2008 2:42 am

  • i tin if i want to compile and run the engine i need the nexuiz/trunk/ folder , but i try to use the tortoiseSVN to donwload the folder but i cant it said: Repository moved permanently to '/nexuiz/trunk/'; please relocate'. from shaggy tutorial, i tin if we need to add the pop we don use darkplace at all instead we need to compile gamecode in qcsrc/

    Wondering whether i am right or not =.=' :D
    X-vEn-TuRE
    Xventure7
    Member
     
    Posts: 16
    Joined: Wed Dec 17, 2008 10:15 am
    Location: US

Wed Dec 31, 2008 1:15 pm

  • If you wrote in more readable sentences, then the answer would probably yes. As I said you need to modify qcsrc/menu/... files.
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am

Fri Jan 02, 2009 7:57 am

  • Thx alot Allen, now i can compile and run it arldy! Next move is coding stuff :)
    X-vEn-TuRE
    Xventure7
    Member
     
    Posts: 16
    Joined: Wed Dec 17, 2008 10:15 am
    Location: US

Mon Jan 05, 2009 8:35 am

  • Allen u know how to code password text box (******) ?

    thx :)
    X-vEn-TuRE
    Xventure7
    Member
     
    Posts: 16
    Joined: Wed Dec 17, 2008 10:15 am
    Location: US

Mon Jan 05, 2009 10:13 am

  • Hmm... i have made up a log in screen pop up, i am abit blur on the coding like how to authenticate the user with the input from the user and the password.

    I am glad if you could guide me through this 8)
    X-vEn-TuRE
    Xventure7
    Member
     
    Posts: 16
    Joined: Wed Dec 17, 2008 10:15 am
    Location: US

Mon Jan 05, 2009 2:22 pm

  • There is one thing as authenticating inside menu only and way other server side authentification,
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am

Mon Jan 05, 2009 2:29 pm

  • That feature really isn't a good idea.

    If servers can be password protected, many will be, but still appear in the public server list. That would be really annoying, as most players simply don't have the password for these servers. Just try to join a server in UT99, you'll see what I mean. A high percentage of them is password protected, making it really hard to find a server that is NOT passworded.

    The only way such a feature could get in is if it ensures that password protected servers never are entered into the public server list - that is, if the code ensures that sv_public is never 1.
    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 Jan 05, 2009 2:33 pm

  • There could be an even better solution by auto filtering (show or not) the password protected servers. Naming a server "go to #mine_friendly_server channel and ask for invite" isn't a bad idea and would remove the amount of tk'ers and spammers incredibly in that particular server.
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am

Mon Jan 05, 2009 3:28 pm

  • No.

    Sure, that was the intention in case of UT too. But too often that info doesn't get updated, or it was never shown who to ask, or even clan servers.

    No, either make your servers public, or don't. Password protected servers are not public BY DEFINITION.

    However, it now is possible to enter servers as favorites, so you can put your private servers (that might be protected) into the server list that way.
    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 Jan 05, 2009 3:52 pm

  • When you don't know smth exists, you don't feel the need to ask or search. Password protected server is public for those who knows the password and this might be not only 8 players but to 30 or more. What's the problem of ticking off show password protected servers checkbox?
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am

Tue Jan 06, 2009 7:00 am

  • i try:

    me.TD(me, 1, 1, e = makeNexuizTextLabel(0, "Password:"));
    me.TD(me, 1, 1, e = makeNexuizInputBox(0, string_null));

    i tin this one is incorrect one since the password file would appear in text rather than ******

    so what should i change?[/img]
    X-vEn-TuRE
    Xventure7
    Member
     
    Posts: 16
    Joined: Wed Dec 17, 2008 10:15 am
    Location: US

Tue Jan 06, 2009 7:20 am

  • Alien wrote:When you don't know smth exists, you don't feel the need to ask or search. Password protected server is public for those who knows the password and this might be not only 8 players but to 30 or more. What's the problem of ticking off show password protected servers checkbox?


    "public for those who knows the password" - this exactly is the opposite of what "public" means.

    Sure, SOME of these may easily give out the password, but that will be far from the majority. If passworded servers get into the server list by default, many servers will be protected, and only few will remain. See UT99. This would make Nexuiz unplayable for anyone who isn't already "known" by someone.

    Not putting them into the public server list at all elegantly solves that problem. If you want to be able to click your clan server, you enter its IP once into the favorites. Can even make a pk3 for you that clan members install that does that automatically. It really does not mean that someone would have to type in an IP.
    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

Tue Jan 06, 2009 7:21 am

  • Xventure7 wrote:i try:

    me.TD(me, 1, 1, e = makeNexuizTextLabel(0, "Password:"));
    me.TD(me, 1, 1, e = makeNexuizInputBox(0, string_null));

    i tin this one is incorrect one since the password file would appear in text rather than ******

    so what should i change?[/img]


    There is no password box yet, you'd have to derive a NexuizPasswordInputBox class from NexuizInputBox and override the drawing routine.
    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

Tue Jan 06, 2009 3:38 pm

  • No, no, no, the main reason for password protected servers lies in knowing that you should act good to get invited. If you act lame, call others gays and etc, you will be "marked" untouchable forever.

    The even better way would be going with something like this:

    You have 2 servers: one public non-protected, one password protected and also public. Suppose you appoint several known players as protected server admins. They can add to allowed players database friendly players from public server (each id - different password) and remove those who ruins the gameplay. Public server acts a test ground for new players who want allowed to play in supposedly better server. This increases even the quality of unprotected server too.

    The most important thing is playing without annoying others cause you can be watched (panapticon principle).

    What are you trying to do is separate scene persons from public, where latter doesn't even know they exist, while suggest introducing middle layer, where public people showing some respect for others could come to play. As I said, when you don't know smth exists, you don't try to get there. When you know there is password protected server, you might ask others what qualities you should have to get there. This might be not only ethics, but also gameplay ability, etc...

    UT99 wasn't killed, people play in password protected servers because only old-school players were only left (9 years already have passed) and they don't want to be annoyed by some new players who compensate their sucking by calling others gay)) or fag or having a dick length championship. having servers protected from one-day two words players is important thing in increasing quality of gameplay. Why did swearing
    become lower when valve introduced account system? Because people know there is no way you can get another chance play there again if you destroy the game now.
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am

Tue Jan 06, 2009 10:35 pm

  • Alien wrote:UT99 wasn't killed, people play in password protected servers because only old-school players were only left (9 years already have passed) and they don't want to be annoyed by some new players who compensate their sucking by calling others gay)) or fag or having a dick length championship.


    Now tell me just HOW I can get into these servers. You say it as if it was totally easy.

    But they don't have contact info. No way to talk to them directly.
    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

Tue Jan 06, 2009 11:57 pm

  • Lurk/play in several public non-password protected servers until somebody notices you and invites into the password protected one (if you wish to play here).
    http://www.ut99.org/links/

    I still fail to understand where is the difference if you would be able to see supposedly private server or not. So annoying to click and see please enter the password box? So uncheck show password protected servers (or make that checkbox uncheched as default). Admin doesn't want to see his server in the master list? sv_keep_server_private 1.

    Ok, now the questions is which servers are likely to use passworded system? Definitely not the most popular ones, cause the amount and variety of players is high. But they could open second or third parallel server which could be password protected for special events. Same goes for clan servers which could be free for people knowing the password anytime considering that those people who got the password will leave the server when clanmatch is going to start (some sort of mutual agreement).
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am

Wed Jan 07, 2009 2:16 am

  • entity username, password, e, btnLogin, btnCancel;

    me.TD(me, 1, 1, e = makeNexuizTextLabel(0, "UserName:"));
    me.TD(me, 1, 1, username = makeNexuizInputBox(0, string_null));

    me.TR(me);
    me.TD(me, 1, 1, e = makeNexuizTextLabel(0, "Password:"));
    me.TD(me, 1, 1, password = makeNexuizInputBox(0, string_null));

    me.TR(me);
    me.TR(me);

    me.TR(me);
    me.TR(me);
    me.TR(me);
    me.TR(me);

    me.gotoRC(me, me.rows - 1, 0);
    me.TD(me, 1, 1, btnLogin = makeNexuizCommandButton("Login", '1 0 0'));
    me.TD(me, 1, 1, btnCancel = makeNexuizButton("Cancel", '0 1 0'));

    if ( username.text == "root" && password.text == "password" )
    {
    btnLogin.onClick = Dialog_Close;
    btnLogin.onClickEntity = me;

    }
    else
    {
    //dont care

    }

    my problem is:
    if ( username.text == "root" && password.text == "password" ) this line is not working
    X-vEn-TuRE
    Xventure7
    Member
     
    Posts: 16
    Joined: Wed Dec 17, 2008 10:15 am
    Location: US

Wed Jan 07, 2009 8:07 am

  • What's the error?
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am

Wed Jan 07, 2009 8:19 am

  • it compiles and run well but the thing is the Login button is not working!

    The dialog should be closed but it is not functioning when i click on the Login Button.
    X-vEn-TuRE
    Xventure7
    Member
     
    Posts: 16
    Joined: Wed Dec 17, 2008 10:15 am
    Location: US

Next


Return to Nexuiz - Development




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