Getting HTM code in my UIScript


(NIRO) #1

I want to use HTML code in my menu.

well…

I want to make some up-to-date info for my clan (ON THE SERVER)
The big problem is that if i make a picture and i change it, it chould be downloaded every time i update the picture to the server. (like every week, that are a lot of files)

So my idea is to make the picture, place it on our website somewhere and use the link in my menu.

Normaly you would say (in UIScript): ''ui/assets/xxx.tga
I want: http://www.nl4u.nl/servermenu/pictures/xxx.tga

Can it be done with some command???


(Jaquboss) #2

no, you must first code some web interface to download that file


(NIRO) #3

so, it can be done but i have you say in the script to download the file first. soo, that means a new .pk3 file every time i upload the file??


(carnage) #4

its posible to make a basic display with a UI interface you would have to actualy program some fucntions to get it to update. All you realy need is to have it delete a PK3 by name then re download it. when you update the PK3 in the ftp or online space it will be re downloaded and the latest info will show

since the UI are such low memory it might be good to have a button to delete the pk3 and re download then try open everyhting including the layout and news for the PK3 so you can total update it every time rather then just images

and if you are going to hhave images that you want to use in say every page like a fancy header or something (esspecialy if it uses effects and needs to be .TGA) have that in a different pk3 that stays on the system permenantly to avoid re downloading files that dont change

if programing is not an option since you want compatability with another mod e.g. ET pro. then maby you can have a small mod that removes a pk3 by name then redirects to you clans server and then will download the latest pk3. could work but might put off a lot of players who dont regularly use the server


(NIRO) #5

So is see.

I dont think a am even gonna make it, because that way i wanted to make sure the DONT have to download. But as i read. That is NOT an option because all info should be on the SERVER.


(carnage) #6

well depending on what is in your pk3 the download shouldnnt be very big at all .UI files are small and if images a .JPG then the download might only be a few seconds. if you start throwing .TGA in the you could hit a couple of megs for every time someone tried to connect to the server

if you managed to make a mod that downloaded this stuff while playing you will still have troubles cos as far as i am aware anyhting changed in the pk3’s wont be loaded into the game untill a vid restart so players would have to re load the map and that would not go down well