"Onpreforms.cfg" file (loads after a map is loaded)

Please give us your opinions on gameplay and any suggestions you have which could make Dystopia better.

Moderator: Forum Moderators

"Onpreforms.cfg" file (loads after a map is loaded)

excellent. (+2)
4
57%
could be cool. (+1)
0
No votes
do not like it. (-1)
3
43%
 
Total votes : 7

"Onpreforms.cfg" file (loads after a map is loaded)

Postby The Chosen One » Sat Sep 18, 2010 6:15 pm

TL;DR: An Onperforms script for Dystopia (like the ones you see in IRC clients)

So, after playing OBtopia for a few days, I noticed that my in-game name (which was different from my Steam Name) had defaulted to my Steam name. Knowing that the OB engine sets in-game names to Steam names, I used setinfo name to change my name. A few rounds later, I noticed that it had defaulted back yet again. Puzzled, I set changed again with setinfo, this time taking note of how long it remained changed. Apparently setinfo stops working after a new map loads, or you connect to a server.

So, I had a thought. *Cue Windows 7 commercial-like effects*

"There should be a script that executes when the map loads!"


What if there was a script like "onpreforms.cfg" that functions similar to the onpreforms function in most IRC clients. It doesn't start when the client loads, but rather when it finishes connecting to a server.

Pros:
  • Could be used to change names without having to manually execute a script.
  • Could be used to auto-authenticate to servers if needed
  • Could be used to set functions that may only be set when joining a server
Cons:
  • Could technically be hijacked to disconnect a user as they join a server
    --You could also just put "quit prompt" in valve.rc and do more damage.
  • Could be hijacked to screw up settings upon joining server.
    --See above
  • Could be read by a 3rd party on a remote machine to gain passwords if the system is comprimised
    --Dude. If someone hacked your PC, they're not gonna just go after a password to one server in one (little-known about) game.
User avatar
The Chosen One
PHAN
PHAN
 
Posts: 137
Joined: Fri Jun 19, 2009 6:21 pm

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby KindredPhantom » Sun Sep 19, 2010 6:38 am

Or perhaps you could put it in a cfg and execute it on map load?
Image
Image
Image
User avatar
KindredPhantom
Puny Human staff
 
Posts: 3167
Joined: Mon Jan 23, 2006 8:27 am
Location: United Kingdom

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby UsefulId|ot » Sun Sep 19, 2010 10:10 am

Or perhaps you could put it in a cfg and execute it on map load?
when was simplicity ever the best answer?!
Image
Image
User avatar
UsefulId|ot
PHAN
PHAN
 
Posts: 502
Joined: Mon Aug 11, 2008 10:45 am

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby Zero-Flame » Sun Sep 19, 2010 11:29 am

When we developed the first nuclear bomb of course :)

Yeah,

bind z "exec onPerform.cfg"

Tada, no code changes needed.
WW3|Zero-Flame
Free file hosting at http://Zero-Flame.com
US FastDL @ http://fastdl.zero-flame.com
Image
Image
User avatar
Zero-Flame
higher post count
 
Posts: 2710
Joined: Wed May 31, 2006 6:14 pm
Website: http://Zero-Flame.com
Yahoo Messenger: ZeroFlame07@yahoo.com
Location: Kansas City

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby The Chosen One » Sun Sep 19, 2010 12:09 pm

Yes, but that requires you having to remember to press a key on map load. What if you're too forgetful or lazy to do so?
User avatar
The Chosen One
PHAN
PHAN
 
Posts: 137
Joined: Fri Jun 19, 2009 6:21 pm

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby KindredPhantom » Sun Sep 19, 2010 12:11 pm

Yes, but that requires you having to remember to press a key on map load. What if you're too forgetful or lazy to do so?
Then you will still have the same name.
Image
Image
Image
User avatar
KindredPhantom
Puny Human staff
 
Posts: 3167
Joined: Mon Jan 23, 2006 8:27 am
Location: United Kingdom

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby Juan » Sun Sep 19, 2010 3:16 pm

bind it to "w"
User avatar
Juan
PHAN
PHAN
 
Posts: 3398
Joined: Sat Nov 19, 2005 4:05 pm
Website: http://www.mywasteofspace.com

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby Zero-Flame » Sun Sep 19, 2010 8:36 pm

bind mouse1 "+fire;exec onperforms.cfg;"
WW3|Zero-Flame
Free file hosting at http://Zero-Flame.com
US FastDL @ http://fastdl.zero-flame.com
Image
Image
User avatar
Zero-Flame
higher post count
 
Posts: 2710
Joined: Wed May 31, 2006 6:14 pm
Website: http://Zero-Flame.com
Yahoo Messenger: ZeroFlame07@yahoo.com
Location: Kansas City

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby UsefulId|ot » Mon Sep 20, 2010 1:00 am

bind mouse1 "+fire;exec onperforms.cfg;"
Code: Select all
bind mouse1 "+fire;exec onperforms.cfg;kill;quit"
if yer playing vs me
Image
Image
User avatar
UsefulId|ot
PHAN
PHAN
 
Posts: 502
Joined: Mon Aug 11, 2008 10:45 am

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby jasongauthierdk » Sun Nov 07, 2010 3:19 pm

I believe server.cfg does the job.

It executes on map change, server side. Not sure about client side though.
Image
jasongauthierdk
Blank Load Out
 
Posts: 6
Joined: Wed Sep 15, 2010 12:31 pm

Re: "Onpreforms.cfg" file (loads after a map is loaded)

Postby The Chosen One » Sun Nov 07, 2010 4:06 pm

Well, see, a server-side cfg wouldn't be useful. Servers have no control over things like setinfo name.
User avatar
The Chosen One
PHAN
PHAN
 
Posts: 137
Joined: Fri Jun 19, 2009 6:21 pm


Return to “%s” Dystopia Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Home | News | Overview | Download | Media | Forum | .Plans
Contact | Team | Media Kit | Merchandise | Supporters | Fiction | PotW
All Content Copywrite Team Dystopia 2002-2005.
The brand spankin new Dystopia Website is powered by Sunshine, Lollypops and a Custard Filled Mouse using Leg Boosters.
web.dystopia-game.com