Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Опубликовано:

 

Changeable menu music.

Random menu music (daily music)

Added some musics for special days (first and last days of months', first and last day of year etc)

Above things changeable by dvar (iw4m_music) and it saves itself to your config (so you dont have to set it every time start game)

News Ticker edited... (i think it should have more 'news' )

Name dvar (cant change nick when in server, empty names will be converted to forum user name) working...

External console window removed, and dedicated 'no console' bug fixed.

Servers can be added (this is always possible w/ and w/o mod) to main menu. When clicked, it will connect. :)

Menu background changed

FourDeltaOne logos added (credits going to Zer0w)

Опубликовано:
wonder how you managed to get image data loaded from just a DLL

lol'ed

 

unless he stores an iwi in the dll and changes the pointer to menu_sp_image to point to it :o

or just make your own D3D texture and bypass all of Image_* except for putting it in the GfxImage struct :P

Опубликовано:
  • Автор

lol srry my mistake image in m2demo/images folder...

 

but i think its possible with new 'musical talent' file...

 

if (!_stricmp(name, "menu_mp_image"))

{

static image_alias_list_t newList;

static image_alias_t newAlias;

static StreamFile newImage;

 

????

edit:

Also remove name dvar entirely...

 

i dont understand why... because everyone can change memory to change name... also doesnt work when in fourdeltaone servers. only in legacy server you can get x renamed to y text...

empty names becomes forum username...

Опубликовано:
because everyone can change memory to change name...

ever even seen the effect of doing that on the currently-not-yet-deployed aCI2.dll update?

ie. has-been-ready-for-months-but-I'm-too-lazy-to-deploy?

lately it's more like needs-some-new-feature-but-keep-forgetting-the-proper-way-to-add-calls-to-the-clientdll

Опубликовано:
  • Автор
also what is this "'no console' bug" you talk of, there is no such bug.

when you disable console code from reflection probes, dedicated cant run. freeze at logo. when i put memset((void*)0x60BB58, 0x90, 11); in if(game_flag(game_flag_dedicated)) its working.

 

offtopic: how to convert 0xabcd addresses to memory address or reverse it?

 

did this (YES COPY PASTE FTW!)

 

img_alias_list_t* FindImageAliasHookFunc(assetType_t type, const char* name)
{
img_alias_list_t* aliasesi = (img_alias_list_t*)DB_FindXAssetHeader(type, name);

//SYSTEMTIME time; 
//GetSystemTime(&time); 

// the most hated sound at this point
if (!_stricmp(name, "menu_sp_image"))
{
	static img_alias_list_t newiList;
	static img_alias_t newiAlias;
	static StreamFile newiFile;

	// duplicate the asset as we can't modify pointers
	memcpy(&newiList, aliasesi, sizeof(newiList));

	memcpy(&newiAlias, newiList.aliasesi, sizeof(newiAlias));
	newiList.aliasesi = &newiAlias;

	memcpy(&newiFile, newiAlias.istream, sizeof(newiFile));
	newiAlias.istream = &newiFile;

	// and replace the filename.
	newiFile.file = "menu_background.iwi";

	// oh and this too
	aliasesi = &newiList;
}

return aliasesi;
}

 

and

 

	findImageAliasHook.initialize(findImageAliasHookLoc, FindImageAliasHookFunc);
findImageAliasHook.installHook();

 

and

 

CallHook findImageAliasHook;
DWORD findImageAliasHookLoc = 0x000000; //found image alias name at 1D0FF8C

 

and in mw2.h

typedef struct  
{
char pad[20];
StreamFile* istream;
char pad2[76];
} img_alias_t;

typedef struct  
{
const char* name;
img_alias_t* aliasesi;
int numiAliases;
} img_alias_list_t;

 

just need converter to write image data like in musicaltalent.cpp

Опубликовано:
also what is this "'no console' bug" you talk of, there is no such bug.

when you disable console code from reflection probes, dedicated cant run. freeze at logo.

now why would you do that?

 

also, images are obviously not the same as sounds...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.