First of all, hello to everyone, and a warm thank you for this native client for linux, without which no powers to play occasionally in aceofspades.
Secondly, I want to apologize because this post is double,you can find an approximate summary of my intentions here:
https://github.com/yvt/openspades/issues/303
Third, I want to propose some changes that refer to a single code file .cpp In: /Source/Client/MapView.cpp
and some specific icons./resource/Dev/Paks27.zip ->pak000-Base.pak ->/Gfx/Map/Player.png
Now I will try to convince you that I'm not saying something stupid.
THE CURRENT STATUS OF MINIMAP
At this time the minimap simply represents the same icon for each player, this icon is located within /resource/DevPaks27.zip within pak000-Base.pak inside /Gfx/Map and is called Player.png. It is a simple white isosceles triangle, above which a filter is applied in the same color of the team player.
MY IDEA
the goal is to have a more representative and useful minimap
First of all a unique colour for each players is useless. So it would be appropriate to apply a filter based on the identifier of the connection, and more simply, one color for each player.
In the /Source/Client/MapView.cpp file There is a function can return the id of connection as represented in the Score board:
for(int i = 0; i < world->GetNumPlayerSlots(); i++){
Player * p = world->GetPlayer(i);
if(!p) continue;
}
renderer->SetColorAlphaPremultiplied(AFILTERCOLOUR);
Secondly:
Instead of a unique triangular shape for each player perhaps (but this is a proposal least) three icons
of different shapes depending on the weapon supplied to the player.
Why do all this?
Why openspades is a nice client but can improve.
For better organization ingame.
Often I move without organization: as no one has any idea what the other players do. With these two small steps, each player would have a precise idea of where another player. It could also have an idea of what combat technique adopted, in agreement with the weapon the other player has.
I thank you all for your attention and I hope to receive a positive response.
EDIT!
ADD DOWNLOAD FOR BETA TESTER
instead of this address you can download and try openspades, modified by me:
https://www.dropbox.com/s/w180ug0lw2hcc ... ar.gz?dl=0
I remind you that all your compliments are to do in ivthttps://github.com/yvt/openspadesWithout which openspades not exist and I could not have done anything
installation is the same openspades,
Once the installation is finished, inside the folder openspades-0.0.12/Gfx/Map you find 3 icons.
put it in ~/.local/Share/openspades/Resources/Gfx/Map
If the folder does not exist:create it
improvements to the minimap
Now I will tell you that I'm trying to do everything alone
But I will never succeed if you do not help me (I only know a little 'python and a bit' of Lua.ALL by myself
study).
I have two fundamental problems:
1)
renderer->SetColorAlphaPremultiplied(COLOURFILTER);
I do not know the syntax of color filter,not know what to write in brackets to filter the icon of the player with a color.
2)
I added an icon inside DevPaks27.zip
-> pak000-Base.pak / Gfx / Map /
an icon .png created with gimp.
But it is not recognized, even if the rename: "player.png", there seems to be some compatibility problems.
Thanks a lot
But I will never succeed if you do not help me (I only know a little 'python and a bit' of Lua.ALL by myself
study).
I have two fundamental problems:
1)
renderer->SetColorAlphaPremultiplied(COLOURFILTER);
I do not know the syntax of color filter,not know what to write in brackets to filter the icon of the player with a color.
2)
I added an icon inside DevPaks27.zip
-> pak000-Base.pak / Gfx / Map /
an icon .png created with gimp.
But it is not recognized, even if the rename: "player.png", there seems to be some compatibility problems.
Thanks a lot
this is the error when I try to change the icon of the player in the minimap.
Code: Select all
2015/01/20 13:16:29 [MainScreen.cpp:246] [!] Error while running a game client: File not found: Gfx/Map/a2.png
at /home/p/openspades-0.0.12/Sources/Core/FileManager.cpp:39
static spades::IStream* spades::FileManager::OpenForReading(const char*) at FileManager.cpp:32
spades::draw::GLImage* spades::draw::GLImageManager::CreateImage(const string&) at GLImageManager.cpp:73
spades::draw::GLImage* spades::draw::GLImageManager::RegisterImage(const string&) at GLImageManager.cpp:51
virtual spades::client::IImage* spades::draw::GLRenderer::RegisterImage(const char*) at GLRenderer.cpp:254
void spades::client::Client::DrawJoinedAlivePlayerHUD() at Client_Draw.cpp:377
void spades::client::Client::Draw2DWithWorld() at Client_Draw.cpp:730
void spades::client::Client::Draw2D() at Client_Draw.cpp:880
virtual void spades::client::Client::RunFrame(float) at Client.cpp:382
virtual void spades::gui::MainScreen::RunFrame(float) at MainScreen.cpp:234
void spades::gui::SDLRunner::Run(int, int) at SDLRunner.cpp:414
void spades::gui::Runner::Run() at Runner.cpp:75
void spades::gui::Runner::RunProtected() at Runner.cpp:48
int main(int, char**) at Main.cpp:369
AoS is a game for authistic 10 yo kiddies who show off their MLG skills. They don't need teamwork or organization or whatever.
But, let's help you. Firstly, can you provide some values that OpenSpades uses instead of COLOURFILTER in different spots in the code, or in case COLOURFILTER an enum or macro, list the possible values? Secondly, did you even read the first line of your log? :P
But, let's help you. Firstly, can you provide some values that OpenSpades uses instead of COLOURFILTER in different spots in the code, or in case COLOURFILTER an enum or macro, list the possible values? Secondly, did you even read the first line of your log? :P
Today I am very happy with what I could do.
Place the file here /source/Client/MapView.cpp
Whoever wants, can copy it and put it in the right place, then reinstall openspades and try the first result I got, that is:
a color for each player
Therefore, a problem is removed, I ask you just a little help with the issue of icons.
i've read it, then the problem is that I do not put the icon called Player.png in the right place, but I just can not figure it out.
Please anyone knows:
Where should I put the icon i want to represent the player.
If there are special measures to achieve this icon with GIMP.
And any other relevant information to customize the icon Player.png.
I repeat again the purpose:
I want to use 3 different icons depending on the equipped weapon (rifle, SMG, Shootgun)
Place the file here /source/Client/MapView.cpp
Whoever wants, can copy it and put it in the right place, then reinstall openspades and try the first result I got, that is:
a color for each player
Spoiler:
LeCom:Secondly, did you even read the first line of your log? :Pyes
i've read it, then the problem is that I do not put the icon called Player.png in the right place, but I just can not figure it out.
Please anyone knows:
Where should I put the icon i want to represent the player.
If there are special measures to achieve this icon with GIMP.
And any other relevant information to customize the icon Player.png.
I repeat again the purpose:
I want to use 3 different icons depending on the equipped weapon (rifle, SMG, Shootgun)
so, putting one into Gfx/Map/a2.png doesn't help? What path did you set for OpenSpades to load the 3 player icons then?
LeCom wrote:so, putting one into Gfx/Map/a2.png doesn't help? What path did you set for OpenSpades to load the 3 player icons then?Abstract: I use Linux
The situation right now is that ALL work if I put the three icons in the folder: ~ /.local/share/openspades/Resources/Gfx/Map/
At compile time openspades shall create the folder: ~/.local/share/openspades/Resources
So I have to provide, for the installation is finished, I manually create other folders that are missing, and put the images inside.
Now I will explain that:
when you download openspades, you must extract the compressed package and create inside a folder "openspades.mk". To install openspades must move (from a terminal) in just openspades.mk and type "cmake .. -DCMAKE_BUILD_TYPE = && Release make ".
The first thing I will do is to check if openspades inside openspades.mk/Resources there is a package called: "DevPaks27.zip"
Since it is not present, neither the folder nor the package, openspades will create the folder and download the "DevPaks27.zip" from internet repository.
Inside "DevPaks27.zip" There are five packages .pak.
inside pak000-Base.pak there /Gfx/Map/Player.png
Whatever I do, rename Player.png, sobstitute Player.png, or whatever. Once all recompressed and recompiled openspades, openspades crash before spawn, with the error that I wrote above:
Code: Select all
So I am pretty sure that the place where they belong icons is what I said before.2015/01/20 13:16:29 [MainScreen.cpp:246] [!] Error while running a game client: File not found: Gfx/Map/a2.png
In Conclusion: I can not understand how to make it work.
Now the good news
The codification work is practically finished and aside some trick to properly install openspades everything works perfectly.
to demonstrate this first place is a screenshot:
as you can see, there are arrows (SMG) of the "T" (rifles) and triangles (Shotgun)
each player is identified by a different color
And you can figure out which color represents which gicatore pressing the TAB key, the connection number of each player is colored the same color of the icon on the minimap.
instead of this address you can download and try openspades, modified by me:
https://www.dropbox.com/s/w180ug0lw2hcc ... ar.gz?dl=0
I remind you that all your compliments are to do in ivthttps://github.com/yvt/openspadesWithout which openspades not exist and I could not have done anything
installation is the same openspades,
Once the installation is finished, inside the folder openspades-0.0.12/Gfx/Map you find 3 icons.
put it in ~/.local/Share/openspades/Resources/Gfx/Map
If the folder does not exist:create it
Who is online
Users browsing this forum: No registered users and 27 guests