L-Leite / cso2-launcher

A custom launcher for CSO2
MIT License
111 stars 54 forks source link

Allow to change notice banners #74

Closed IGNRexI closed 1 year ago

IGNRexI commented 5 years ago

Do you have any idea how I can remove these pictures? or how do I edit it?

Adsız

IGNRexI commented 5 years ago

I searched but could not find

L-Leite commented 5 years ago

Those banners are retrieved from http://s.nx.com/s2/game/CSO2/notice/

For example: the first notice is http://s.nx.com/s2/game/CSO2/notice/00.jpg, the second is http://s.nx.com/s2/game/CSO2/notice/01.jpg and so on...

I think you can either patch the client's code to load your own notices, or you redirect s.nx.com to localhost and serve your own images.

I might implement the first option some day, don't know when

IGNRexI commented 5 years ago

I don't know where it is in which file can I find?

L-Leite commented 5 years ago

Those files are downloaded from a remote server, you can't find them in your disk

IGNRexI commented 5 years ago

isn't there a way to change that?

L-Leite commented 5 years ago

I think you can either patch the game to load your images or you redirect s.nx.com to localhost and serve your own images there.

EDIT: I might patch the game to load your own images in the future, dunno when EDIT 2: So no, you can't just change some file to load your own notice banners

IGNRexI commented 5 years ago

just want to put gun banners for the game

IGNRexI commented 5 years ago

and education posters

L-Leite commented 5 years ago

I'm not sure, but I think you would need custom Hammer binaries with reversed engine structures.

If you want to discuss about custom maps, please open a new issue, so this one doesn't get polluted

IGNRexI commented 5 years ago

okey <3

GEEKiDoS commented 5 years ago

I have been written some ugly patch for this few month ago https://github.com/GEEKiDoS/cso2-launcher/blob/modularizated/src/Plugins/Login/PatchCSO2_Engine.cpp#L109 https://github.com/GEEKiDoS/cso2-launcher/blob/modularizated/src/Plugins/Login/stdafx.h#L21

L-Leite commented 5 years ago

Good work @GEEKiDoS, if you can open a pull request with your patch I will merge it

A 22 de outubro de 2019 12:34:20 WEST, GEEKiDoS notifications@github.com escreveu:

I have been written some ugly code for this few month ago https://github.com/GEEKiDoS/cso2-launcher/blob/modularizated/src/Plugins/Login/PatchCSO2_Engine.cpp#L109 https://github.com/GEEKiDoS/cso2-launcher/blob/modularizated/src/Plugins/Login/stdafx.h#L21

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/L-Leite/cso2-launcher/issues/74#issuecomment-544919665

IGNRexI commented 4 years ago

@GEEKiDoS @L-Leite : when will you arrange to change banners?

L-Leite commented 4 years ago

I'm not sure I also don't know where the banner's host URL will be retrieved from. Maybe from a config file or from the master server host that is already set by the user

IGNRexI commented 3 years ago

image package cso2.ui.promotionObjs I made it by editing .gfx image