AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Chat TETRIS (https://forums.alliedmods.net/showthread.php?t=91567)

Nail 05-02-2009 15:47

Chat TETRIS
 
Make please a tetris on sourcemod the similar:
http://www.youtube.com/watch?v=atdLGxWLrZI
during playing, specating, while dead
AMX version:
http://forums.alliedmods.net/showthr...ghlight=tetris

exvel 05-02-2009 16:29

Re: Chat TETRIS
 
I started to code it a while ago.

ANTiCHRiST 05-02-2009 16:45

Re: Chat TETRIS
 
i think thats not possibl with all games css is it but only with ESC boxes

exvel 05-02-2009 16:58

Re: Chat TETRIS
 
Source games support UTF-8 so it is possible:

[IMG]http://img369.**************/img369/3043/tetris.jpg[/IMG]

ANTiCHRiST 05-02-2009 17:58

Re: Chat TETRIS
 
that was not that what i exatctly mean popups/radio menus not large for tetris i thinks only console or escape boxe are should much bedder for this thing

ps:i know my english sucks

exvel 05-03-2009 11:02

Re: Chat TETRIS
 
Quote:

Originally Posted by ANTiCHRiST (Post 819732)
that was not that what i exatctly mean popups/radio menus not large for tetris i thinks only console or escape boxe are should much bedder for this thing

ps:i know my english sucks

I tested and found that menu box can handle about 476 ASCII symbols (or 238 UTF). It should be enough I think.

Nail 05-03-2009 13:11

Re: Chat TETRIS
 
В том тетрисе задействовано 16 строк по 10 символов (160 символов) т.е. впринципе даже utf должно хватить

ANTiCHRiST 05-04-2009 12:47

Re: Chat TETRIS
 
Quote:

Originally Posted by exvel (Post 820171)
I tested and found that menu box can handle about 476 ASCII symbols (or 238 UTF). It should be enough I think.

yes but do u rly think thats looks good?

exvel 05-04-2009 14:45

Re: Chat TETRIS
 
Quote:

Originally Posted by ANTiCHRiST (Post 820958)
yes but do u rly think thats looks good?

It looks normal I think.

ANTiCHRiST 05-04-2009 22:43

Re: Chat TETRIS
 
have u finished the coding??

exvel 05-05-2009 03:29

Re: Chat TETRIS
 
Quote:

Originally Posted by ANTiCHRiST (Post 821335)
have u finished the coding??

I've just started.

raydan 05-05-2009 05:19

Re: Chat TETRIS
 
Quote:

Originally Posted by exvel (Post 820171)
I tested and found that menu box can handle about 476 ASCII symbols (or 238 UTF). It should be enough I think.

the amx version is 14*10 size, i think 476 are enough
if in css, i think you must use radio menu to do it, but how about the color problem? amx version can show red color

exvel 05-05-2009 09:21

Re: Chat TETRIS
 
Quote:

Originally Posted by raydan (Post 821432)
the amx version is 14*10 size, i think 476 are enough
if in css, i think you must use radio menu to do it, but how about the color problem? amx version can show red color

Look at the screenshot above. That how it can be done.

raydan 05-05-2009 10:31

Re: Chat TETRIS
 
Quote:

Originally Posted by exvel (Post 821569)
Look at the screenshot above. That how it can be done.

ya, i see that.

quick release it :mrgreen:

exvel 05-05-2009 13:29

Re: Chat TETRIS
 
Anyway if someone know any other useful UTF-8 symbols that can be used for tetris please post it here.

ANTiCHRiST 05-05-2009 14:00

Re: Chat TETRIS
 
i think it exists a scripts in eventscripts there are includet some of supportet chars they maybe can be usefull for a script like this i should called something exampel/adminsay or so

Cooltad 05-05-2009 14:05

Re: Chat TETRIS
 
http://www.fileformat.info/info/charset/UTF-8/list.htm

Nail 05-05-2009 14:54

Re: Chat TETRIS
 
ⁿ₪₧℮Ω⅓⅔⅛⅜⅝⅞←↑→↓↔↕↨∂∆∏∑−∕∟≈≠≡≤≥⌐▀▄█▌▐░▒▓■ ▪▫▬▲▼◄◊○●◘◙◦☺☻☼♀♂♠♣♥♦♪
Тока тут они чуток искожены, лучше их просматривать через игру.
остальные символы в microsoft world -> вставка -> символ

exvel 05-05-2009 15:07

Re: Chat TETRIS
 
Thank you guys but the problem is that inside the game these symbols looks different. Here are the symbols that are very close to what I need:

☐☐☐■■■

▔▇▔▇▔▇▔▇

◆◇◆◇◆◇◆◇

▇ ░ ▇ ░ ▇ ░ ▇ ░

But they have a spacing problems. Space symbols and black symbols must have the same width. Symbols in 3d line are perfect but they aren't squares.

exvel 05-05-2009 15:17

Re: Chat TETRIS
 
I have stopped at this variant:

[IMG]http://img89.**************/img89/3326/tetris2.jpg[/IMG]

Nail 05-05-2009 16:23

Re: Chat TETRIS
 
Вроде можно ещё менять цвет символов, это поможет оличать фигуры друг от друга, впрочем в этом нет большой необходимости.

Like it is possible to change still colour of symbols, it will help to distinguish figures from each other, however in it there is no big necessity.

exvel 05-05-2009 17:13

Re: Chat TETRIS
 
Quote:

Originally Posted by Nail (Post 821912)
Вроде можно ещё менять цвет символов, это поможет оличать фигуры друг от друга, впрочем в этом нет большой необходимости.

Like it is possible to change still colour of symbols, it will help to distinguish figures from each other, however in it there is no big necessity.

Unfourtunatly it can be done only with whole lines or done normally in games that support HUD (like TF, etc.).

ANTiCHRiST 05-05-2009 20:17

Re: Chat TETRIS
 
it is possibl to change color default/white/black but its char and/or menu in css

exvel 05-06-2009 02:04

Re: Chat TETRIS
 
Quote:

Originally Posted by ANTiCHRiST (Post 821995)
it is possibl to change color default/white/black but its char and/or menu in css

What do you mean?

ANTiCHRiST 05-06-2009 02:33

Re: Chat TETRIS
 
lysergsäurediethylamid

raydan 05-06-2009 09:57

Re: Chat TETRIS
 
1 Attachment(s)
can you do this?

exvel 05-06-2009 10:49

Re: Chat TETRIS
 
Quote:

Originally Posted by raydan (Post 822241)
can you do this?

noope...:shock:

raydan 05-06-2009 11:38

Re: Chat TETRIS
 
Quote:

Originally Posted by exvel (Post 822275)
noope...:shock:

i think it look better

remove empty cell from background

exvel 05-06-2009 12:21

Re: Chat TETRIS
 
Quote:

Originally Posted by raydan (Post 822303)
i think it look better

remove empty cell from background

But then I would not be able to manipulate intervals.

Cooltad 05-06-2009 13:57

Re: Chat TETRIS
 
Dude, you could simply use a utf-8 character that's invisible for the background.

exvel 05-06-2009 14:19

Re: Chat TETRIS
 
Quote:

Originally Posted by Cooltad (Post 822422)
Dude, you could simply use a utf-8 character that's invisible for the background.

Yeap, but I need that character to have a right width. The same width as square.

Cooltad 05-06-2009 17:33

Re: Chat TETRIS
 
Quote:

Originally Posted by exvel (Post 822440)
Yeap, but I need that character to have a right width. The same width as square.

Or use a character half it's width 2 times.

exvel 05-06-2009 23:42

Re: Chat TETRIS
 
Quote:

Originally Posted by Cooltad (Post 822558)
Or use a character half it's width 2 times.

All this I already tried. There are only suitable characters that I figured above.

raydan 05-07-2009 04:55

Re: Chat TETRIS
 
1 Attachment(s)
i found a empty background

exvel 05-07-2009 05:36

Re: Chat TETRIS
 
Quote:

Originally Posted by raydan (Post 822817)
i found a empty background

Good job, Can you post this symbols here? Or its codes?

ANTiCHRiST 05-07-2009 05:49

Re: Chat TETRIS
 
Quote:

Originally Posted by raydan (Post 822817)
i found a empty background

looks good :up:

raydan 05-07-2009 10:00

Re: Chat TETRIS
 
i use c++ to do it
symbols:
"■" black cell
" " empty cell
" ̄" top line

Code:

g_Start_Tetris_Panel->DrawTitle("Tetris");
 char display[512];
 char *c = display;
 g_Start_Tetris_Panel->DrawRawLine(" \n \n");
 for(int i=0;i<TETRIS_ROW;i++)
 {
  *(c++) = '|';
  for(int j=0;j<TETRIS_COL;j++)
  {
  int rand = engrandom->RandomInt(0,1);
  if(rand == 0)
  { // empty cell
    *(c++) = -29;
    *(c++) = -128;
    *(c++) = -128;
  } else { // black cell
    *(c++) = -30;
    *(c++) = -106;
    *(c++) = -96;
  }
  }
  *(c++) = '|';
  *(c++) = '\n';
 }
 for(int i=0;i<=TETRIS_COL;i++)
 { // the top line
  *(c++) = -17;
  *(c++) = -65;
  *(c++) = -93;
 }
 *(c++) = 0;
 g_Start_Tetris_Panel->DrawRawLine(display);


exvel 05-07-2009 13:42

Re: Chat TETRIS
 
Here is what I've got with this space symbol (empty cell):

[IMG]http://img144.**************/img144/6488/dedust20006h.jpg[/IMG]

So space symbol is too narrow. I tested it in CS:S in resolution 1024x768 :(

Nail 05-09-2009 16:45

Re: Chat TETRIS
 
Ну как? есть результаты?

exvel 05-09-2009 16:52

Re: Chat TETRIS
 
Quote:

Originally Posted by Nail (Post 824452)
Ну как? есть результаты?

Не думаю, что напишу быстро. Сессия у меня. :)


All times are GMT -4. The time now is 14:29.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.