Skip to content

Custom Skins System Added (full work)#302

Draft
IsraelDXPP wants to merge 17 commits intosmartcmd:mainfrom
IsraelDXPP:forked
Draft

Custom Skins System Added (full work)#302
IsraelDXPP wants to merge 17 commits intosmartcmd:mainfrom
IsraelDXPP:forked

Conversation

@IsraelDXPP
Copy link

@IsraelDXPP IsraelDXPP commented Mar 3, 2026

A skin system was added. When you press the R key, one of the skins allows you to choose a custom skin.

@void2012
Copy link
Collaborator

void2012 commented Mar 3, 2026

English please.

@ernesto-cabreja-perez
Copy link

A skin system was added, where you can press x over any skin and select a custom one

@Devlrxxh
Copy link
Contributor

Devlrxxh commented Mar 3, 2026

All the comments not being in english will most likely make this not get accepted

@IsraelDXPP IsraelDXPP changed the title Sistema de Skins Agregado Custom Skins System Added (full World ☺️) Mar 3, 2026
@IsraelDXPP
Copy link
Author

All the comments not being in english will most likely make this not get accepted

Im sorry dont speak english 😕

@EnderActually
Copy link
Contributor

I'm doing my best to translate your comments with my rusty spanish 3 knowledge and cross referencing that to chatgpt and gemini.

I suggested the changes over in your pull request's comments.

Copy link
Author

@IsraelDXPP IsraelDXPP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks


if ((w == 64 && h == 32) || (w == 64 && h == 64))
{
// CACHE BUSTING: Si usas el mismo nombre "custom.png", el cache del motor no se refresca.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set to "// CACHE BUSTING: If you use the name "custom.png", the engine cache does not refresh"

if ((w == 64 && h == 32) || (w == 64 && h == 64))
{
// CACHE BUSTING: Si usas el mismo nombre "custom.png", el cache del motor no se refresca.
// Usamos un contador para generar IDs únicos (ugcskin00000101.png, 102, etc).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set to: "// We use a counter to generate unique IDs (ugcskin00000101.png, 102, etc.)."

s_ugcSkinLoadCount++;

wchar_t textureNameBuf[256];
// Formato ugcskinXXXXXXXX.png es obligatorio para que getSkinIdFromPath genere un ID válido.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set to : "// The format ugcskinXXXXXXXX.png is mandatory for getSkinIdFromPath to generate a valid ID."


wchar_t textureNameBuf[256];
// Formato ugcskinXXXXXXXX.png es obligatorio para que getSkinIdFromPath genere un ID válido.
// Ajustamos el ID para que los bits bajos (0-4) sean 0, respetando el bitmask de UGC.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set to : "// We adjust the ID so that the lower bits (0–4) are 0, respecting the UGC bitmask."

@EnderActually
Copy link
Contributor

EnderActually commented Mar 3, 2026

@IsraelDXPP
I'm not entirely sure what you are trying to convey with: "// Limpieza opcional del buffer anterior" what does anterior mean, does it mean previous in this context?

@IsraelDXPP
Copy link
Author

@EnderActually anterior = after ☺️

@IsraelDXPP IsraelDXPP changed the title Custom Skins System Added (full World ☺️) Custom Skins System Added (full work) Mar 3, 2026
if (m_packIndex == SKIN_SELECT_PACK_DEFAULT && m_bUsingCustomSkin)
{
m_labelSkinOrigin.setLabel(L"X: Custom Skin"); // Muestra la ayuda visual
m_labelSkinOrigin.setLabel(L"X: Custom Skin"); // Show visual help
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is very vague, can you try my suggested comment please?

swprintf(textureNameBuf, 256, L"ugcskin%08X.png", 0x100 + (s_ugcSkinLoadCount << 5));
wstring textureName = textureNameBuf;

// Limpieza opcional del buffer anterior
Copy link
Contributor

@EnderActually EnderActually Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set to: "//Optional cleaning of the previous buffer

app.RemoveMemoryTextureFile(m_selectedSkinPath);
}

// 1. Cargar datos en el sistema de archivos en memoria
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set to: "// 1. Load data into the in-memory file system"

@EnderActually
Copy link
Contributor

@IsraelDXPP I added all of my English Translations to the comments.

@IsraelDXPP
Copy link
Author

@IsraelDXPPAgregué todas mis traducciones al inglés a los comentarios.

Thanks

@IsraelDXPP IsraelDXPP closed this Mar 4, 2026
@IsraelDXPP IsraelDXPP deleted the forked branch March 4, 2026 14:24
@IsraelDXPP IsraelDXPP restored the forked branch March 4, 2026 14:25
@IsraelDXPP IsraelDXPP reopened this Mar 4, 2026
@IsraelDXPP
Copy link
Author

Todos los comentarios que no estén en inglés probablemente harán que esto no sea aceptado.

Fixed

- Incorporates latest fixes and features from the original repo
- Prepares main for new branches/PRsupdates from upstream/main into my fork
@void2012 void2012 marked this pull request as draft March 5, 2026 07:43
@void2012 void2012 closed this Mar 5, 2026
@codeHusky codeHusky reopened this Mar 5, 2026
@void2012
Copy link
Collaborator

void2012 commented Mar 5, 2026

Don't forget to use std::array instead of C-style arrays!

@IsraelDXPP
Copy link
Author

Don't forget to use std::array instead of C-style arrays!

ok

@IsraelDXPP
Copy link
Author

I'm going to reimplement this later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants