You are an unregistered user, you can register here
Navigation

Information

Site

Donations
If you wish to make a donation you can by clicking the image below.


 
Go Back   The Unreal Admins Page > Forums > Unreal Admins > Unreal Tournament > UT Server - General Chat

Reply
Thread Tools Display Modes
  #1  
Unread 24th August, 2012, 02:19 AM
Azura's Avatar
Azura Azura is offline
Holy Shit!!
 
Join Date: Apr 2003
Posts: 4,029
Default An idea for a smart redirect

Hi,

It's been a long time.

I just visited the UA and saw the uz Redirection Service link when an idea came to mind. I'm not sure why I hadn't thought of this before.

To get around the limitation that UT doesn't allow downloading of uz files through redirects here's a possible workaround:

- Load a URL with some parameter values through Unrealscript to trigger some PHP code.
- PHP code reads parameters to decide what files to move from local site or distant site to a public-accessible directory.
- UT server waits a bit (or is there some way of doing a callback?) and then restarts to collect the new uz files on the public directory.

Do you think this would work ?
__________________
How to feck up a perfectly good game:
UT (1999) = UnbelievableGameSoCoolIMustHelpBringNewPlayers Tournament
UT (2008) = Unreal ThrustMyPrivatePartsInYourFaceBish

And that's probably why UTIII was a relative flop. New game, same sh*thead players ^^.

Last edited by Azura : 24th August, 2012 at 02:22 AM.
Reply With Quote
  #2  
Unread 24th August, 2012, 05:04 PM
2399Skillz 2399Skillz is offline
Super Moderator
 
Join Date: Jan 2004
Location: North Carolina
Posts: 2,245
Default

wait what?
__________________

UT-FILES.COM
Get your files
Reply With Quote
  #3  
Unread 25th August, 2012, 12:00 AM
UTrustedPlayer's Avatar
UTrustedPlayer UTrustedPlayer is offline
Godlike
 
Join Date: Nov 2011
Posts: 339
Default

He means a way of doing multiple redirects but the hard work is done by a website script.

Yeah, it will work but you have to code the wait/retry into the uscript side and even then some of it is built into the native code so it was very much a hit-n-miss thing for us trying to make it work. If you don't code in waiting it feeds all kinds of errors into the log. We ran directly into this trying to get the UT server to wait on a php DB return when working on the UTP service. Even if you can do this it's still messy and we never could get all the errors cleared.
__________________
Retired.
Reply With Quote
  #4  
Unread 25th August, 2012, 12:18 AM
Azura's Avatar
Azura Azura is offline
Holy Shit!!
 
Join Date: Apr 2003
Posts: 4,029
Default

Quote:
Originally Posted by UTrustedPlayer View Post
He means a way of doing multiple redirects but the hard work is done by a website script.
Exact. Multiple redirects melded into one as was the original intention on the redirect service at UA. Including an added twist that would allow hosting compressed content with minimal space provided that uz files can be downloaded and cached through PHP from elsewhere.

Quote:
Yeah, it will work but you have to code the wait/retry into the uscript side and even then some of it is built into the native code so it was very much a hit-n-miss thing for us trying to make it work. If you don't code in waiting it feeds all kinds of errors into the log. We ran directly into this trying to get the UT server to wait on a php DB return when working on the UTP service. Even if you can do this it's still messy and we never could get all the errors cleared.
Yes, the snag is that unrealscript doesn't support threads explicitely. Do you see a way of doing a callback ? In other words send information from the web site to the UT server after the initial request. That would avoid having the server to wait.
__________________
How to feck up a perfectly good game:
UT (1999) = UnbelievableGameSoCoolIMustHelpBringNewPlayers Tournament
UT (2008) = Unreal ThrustMyPrivatePartsInYourFaceBish

And that's probably why UTIII was a relative flop. New game, same sh*thead players ^^.

Last edited by Azura : 25th August, 2012 at 12:28 AM.
Reply With Quote
  #5  
Unread 25th August, 2012, 12:54 AM
UTrustedPlayer's Avatar
UTrustedPlayer UTrustedPlayer is offline
Godlike
 
Join Date: Nov 2011
Posts: 339
Default

Yeah, it can be done but in the meantime you get floods of errors to the server log until it gets a return. This originates from the native side code so perhaps a private chat with someone like wormbo could get you closer to a clean solution. It's certainly doable though because we did it but never got it 'right'.
__________________
Retired.
Reply With Quote
  #6  
Unread 4th September, 2012, 05:26 AM
chicken- chicken- is offline
Dominating
 
Join Date: Mar 2005
Posts: 104
Default

Can't you just make a server-side mod that has multiple redirect entries and it automatically checks each one for the file if it doesn't find it? (Like Demo manager does).

Forgive me if that's exactly what you are describing, the PHP thing throws me off, not all that keen on that stuff Would be a very handy thing to have though. I always wondered why there are so many random mods nobody will ever use out there, and obvious useful things like this were never made
Reply With Quote
  #7  
Unread 6th March, 2013, 09:10 PM
back4more's Avatar
back4more back4more is offline
Holy Shit!!
 
Join Date: Oct 2008
Location: NextDoor
Posts: 1,908
Default

will bump this one

re: errors to ucc.log.. why not just suppress those errors if they don't really effect the Server/Game/Mod in any other way apart from some Verbose .. "Opps I don't know what just happened".. Accessed none .. etc

Perhaps?.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:26 AM.


 

All pages are copyright The Unreal Admins Page.
You may not copy any pages without our express permission.