System Talkative! Chat System

quraji

zap
Reaction score
144
No one can think of anything to add to this? Hmmm!

I don't play the game enough to know what's needed, so help me out! :thup:
 

Hatebreeder

So many apples
Reaction score
381
Guess Ownage is right ^^
Guess you could use the Picture function types to do that =)
Problem is, you would need pictures of different smileys...
 

quraji

zap
Reaction score
144
I just want the system to be pasted into the map and forgot about, so I'd rather avoid extras :)

I may upload soon a more organized version of the code so that JASS'ers can more easily edit the functions to do different things. As of now it's a bit messy/confusing.

Other than that I don't plan on releasing another version (for lack of things to add).

If you have a suggestion please post it. Also, I may be able to help with specific requests (things I wouldn't add to the system, but an edit to your version), or something like that.

Thanks :thup:
 

quraji

zap
Reaction score
144
Bump.

If anyone wants to get on B.net and chat with me using this, that would be tops...I need a better screenshot (and you could post about how awesome it is *wink*).
 

quraji

zap
Reaction score
144
I have plans for updating this with added features, functionality and customization. Plus, speech stylizers (such as activating a pirate-speech style, so you talk like a pirate :thup:). This is only if at least a few people show some interest in it.

So, post about how much you love this, and how much you want an awesome update! (Do it.)
 

black.sheep

Active Member
Reaction score
24
This looks good (I made my own GUI version however, for my demo map, so I could get cred for it)
Anyway, could you make a killer voice chat? Like in Phase Killer or Parasite 2? Or a option for mimicing other people?
 

dannyboydude

Ultra Cool Member
Reaction score
33
Hey i only just noticed but ...

WHats up with this
JASS:
globals        
        private string array PlayerColours [12]
        private <b><u>boolarray</u></b> array SquelchList [12]
        private boolean array AllyChatOn [12]
        private boolean array UnitChatOn [12]
    endglobals



the [boolarray] lol im sure thats not a type of variable
 

Artificial

Without Intelligence
Reaction score
326
@Dannyboydude
Just above that globals block:
JASS:
type boolarray extends boolean array [12]
So boolarray is a dynamic array, which are usable as variable types just like structs are. :p
 

quraji

zap
Reaction score
144
This looks good (I made my own GUI version however, for my demo map, so I could get cred for it)

Credit for what?

Hey i only just noticed but ...

WHats up with this
JASS:
globals        
        private string array PlayerColours [12]
        private <b><u>boolarray</u></b> array SquelchList [12]
        private boolean array AllyChatOn [12]
        private boolean array UnitChatOn [12]
    endglobals



the [boolarray] lol im sure thats not a type of variable

It's a custom type:
Code:
    type boolarray extends boolean array [12]

I defined a boolarray as an array of boolean arrays...so like a boolean grid. It's easier to keep track of squelched players (since I need a boolean for each player, per player :p)


Updated with a screenshot from the newest version..the last screenshot was lame.
 

SerraAvenger

Cuz I can
Reaction score
234
Really awesome, but...
JASS:
function String2File takes string insertstring returns helpfile
    local integer index = 0
    local integer depth = 0
    local integer length = StringLength( insertstring )
    local integer matches = helpfiles
    local integer matchindex
    local helpfile array match
    local string curChar 
    set insertstring = StringCase( insertstring, false )
    loop
        exitwhen index == matches
        set match[ index ] = SortedFile[ index ]
        set index = index + 1
    endloop
    loop
        exitwhen depth &gt; length
        exitwhen matches &lt;= 1
        set index = 0
        set curChar = SubString( insertstring, depth, depth + 1 )
        loop
            exitwhen index &gt;= matches
            if SubString( match[ index ].comparename, depth, depth + 1 ) != curChar then
                set matches = matches - 1
                set matchindex = index
                loop
                    exitwhen matchindex &gt;= matches
                    set match[ matchindex ] = match[ matchindex + 1 ]
                    set matchindex = matchindex + 1
                endloop
            endif
            set index = index + 1
        endloop
        set depth = depth + 1
    endloop
    return match[ 0 ]
    //return BASE        
endfunction
 

lbebusiness

New Member
Reaction score
3
For sake of usability

I know its discontinued but "Code retained for historical reasons (take what you want)"
I was only able to use the code when I added what I think was a missing "type". Jass helper kept throwing me a type error untill I added this:

Original:
JASS:
    type boolarray_ar extends boolarray [12]


Fixed:
JASS:
    type boolarray_ar extends boolarray array [12]


also may I ask why it was discontinued?
 

quraji

zap
Reaction score
144
>>type error

Might have been my error, or possibly a syntax change.

>>may I ask why

Sloppy, buggy, etc.

Limited usability and usefulness.

Frankly, I was surprised to see the thread again. If you are actually interested I might do a revised version.
 

lbebusiness

New Member
Reaction score
3
Well I mistakenly thought this was a floating text that follows over unit. But since I did get it to work I like the squelch (which is rather redundant at the moment I'll explain why in a min) feature and just because its different. I want you to take a look at the map. I'll be hosting it for some good testing and ideas today.

Btw I wasn't able to log in to change my last post therefore its missing A LOT of information. I will post it here:

So I started to delete whatever came up with an error in this order:
Had to delete :
JASS:
       set SquelchList = boolarray_ar.create()

Error:
boolarray_ar is not of a type that allows . syntax

Had to delete :
JASS:
         exitwhen i == boolarray_ar.size()


Now at this point the loop that this piece of code was in was now useless SO I deleted the entire loop but just to keep showing the errors in order I didn't delete the loop but continued to delete errors that came up in order as I tried to save the map. (This is when squelch became redundant because that loop is what ran it. lol)

Had to delete:
JASS:
             exitwhen j == boolarray.size()


Error : size is not a methood

Had to change:
JASS:
    type boolarray_ar extends boolarray [12]


To:
JASS:
    type boolarray_ar extends boolarray  array [12]


Error:
A bunch of them but all about the same line. main error was:
Undefined type boolarray

At this point the map will save and will run without error in warcraft III.


Okay that was what I did to make it work with my map. Basicly remove squelch...something wrong with the whole array thing.
 

quraji

zap
Reaction score
144
My code must have been written with an older version of JassHelper syntax. I can update it.
 

Romek

Super Moderator
Reaction score
963
Well, I'm going to graveyard this.
It isn't continued any more (first post), and the current version doesn't work with the newest JassHelper.
 

lbebusiness

New Member
Reaction score
3
Resurrected from the grave!!!

Well why thank you! :p lol. but yea great system! the only thing not working was the squelch arrays (am I correct? semi newb taking a good guess)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top