Quantcast

Jump to content

» «
Photo

Speech Recognition Reborns !

53 replies to this topic
Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#1

Posted 29 July 2014 - 04:10 AM Edited by Rugz007, 29 July 2014 - 04:11 AM.

Hey Guys :)

I am back here after a long time .I have to ask a question to you guys and some things too   :p

 

 

As my speech recogintion mod failed...

Can i just look at the code and make one of my own and release it by giving the credits to the maker of the code (mIcheal C)?

I have been a idiot that time but this time i am serious !

 

What is your oppinions :D

 

 

NO DISRESPECT ! NO PAST TIME RECALL ! PLEASE NO LOCKING THIS TOPIC BECAUSE IT WAS/IS/WILL BE MY DREAM MOD! 


Nathandark
  • Nathandark

    It Was That Moment Nathan Knew

  • Members
  • Joined: 29 Jul 2014
  • None

#2

Posted 29 July 2014 - 05:30 AM

oh thank dude i just found about the old one a few days ago and i didnt work thanks for doing this man i allways love more scirpt mods for gta iv (:


Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#3

Posted 29 July 2014 - 05:35 AM

1 guy in ! 

others ?


Wiebrendh
  • Wiebrendh

    C# Programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#4

Posted 29 July 2014 - 09:28 AM

Remake it from scratch. It does not matter id you google certain things that u dont know, as long as you dot copy paste whole parts. And dont ask stupid qustions like "how do i lower wanted level". As long as you do this, i will help you of you need it. Good luck :)
  • AgentWD40 likes this

Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#5

Posted 29 July 2014 - 09:33 AM

YEAH !!!

I WILL START MAKING IT NOW (FROM THE SCRATCH)

:D

 

P.S - Good to see you again :D 

         Feeling Bad About Maro :( 

Anyways thanks dude now lets make the greatest mod ever !


Wiebrendh
  • Wiebrendh

    C# Programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#6

Posted 29 July 2014 - 09:49 AM

Why feeling bad about maro

Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#7

Posted 29 July 2014 - 10:04 AM

dude he got ban second time :p

 

btw thanks to my super speed completed 1/4 of code 

 

release by tommorow :D


Noox
  • Noox

    changeScriptAbility(&myScriptAbility, "improve");

  • Members
  • Joined: 20 Jun 2014
  • None

#8

Posted 29 July 2014 - 11:04 AM

dude he got ban second time :p

 

btw thanks to my super speed completed 1/4 of code 

 

release by tommorow :D

Third time.


LetsPlayOrDy
  • LetsPlayOrDy

    Lets mod or die!

  • Members
  • Joined: 24 Aug 2013
  • United-States

#9

Posted 29 July 2014 - 11:47 AM

@Rugz007
You better actually code it by yourself this time.
@Noox
I only remember two lol

Noox
  • Noox

    changeScriptAbility(&myScriptAbility, "improve");

  • Members
  • Joined: 20 Jun 2014
  • None

#10

Posted 29 July 2014 - 11:51 AM

@Rugz007
You better actually code it by yourself this time.
@Noox
I only remember two lol

No, he got his first account banned for some reasons I can't remember, then got unbanned, got banned again for the second time after being mad at me because according to him I said I was better than him when I didn't even think of that, then got banned again with that unknownname7 or whatever the name was.


Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#11

Posted 29 July 2014 - 11:57 AM

@letsplayordy - i am doing that :D


Wiebrendh
  • Wiebrendh

    C# Programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#12

Posted 29 July 2014 - 04:29 PM

Well i did not care that maro got banned. not even a second. I did not like Him so yeah

AgentWD40
  • AgentWD40

    GLITCHED

  • Members
  • Joined: 02 May 2009
  • Philippines

#13

Posted 29 July 2014 - 06:58 PM

System.Speech = free memory leaks for everyone! :santa:


LetsPlayOrDy
  • LetsPlayOrDy

    Lets mod or die!

  • Members
  • Joined: 24 Aug 2013
  • United-States

#14

Posted 29 July 2014 - 07:54 PM Edited by LetsPlayOrDy, 29 July 2014 - 08:05 PM.

No, just Speech.Synthesizer. So if he took out the part where the script talks back to you, then it would remove the leak, at least I believe.
  • leftas likes this

AgentWD40
  • AgentWD40

    GLITCHED

  • Members
  • Joined: 02 May 2009
  • Philippines

#15

Posted 29 July 2014 - 08:35 PM Edited by hardsty1e, 29 July 2014 - 08:47 PM.

wished it was just Speech.Synthesizer but nope. although most of the young modders wouldn't care to understand that memory leaks are bad lol.

    public void Helper(object sender, GraphicsEventArgs e)
    {
        e.Graphics.Scaling = FontScaling.ScreenUnits;
        e.Graphics.DrawText("Memory: " + (Process.GetCurrentProcess().PrivateMemorySize64 / 1024).ToString() + " KB", 0.63f, 0.8f);
    }

LetsPlayOrDy
  • LetsPlayOrDy

    Lets mod or die!

  • Members
  • Joined: 24 Aug 2013
  • United-States

#16

Posted 29 July 2014 - 08:48 PM

Hmm, well when I was reading up about it, it only said that the memory leak occurred in the Speak/SpeakAsync functions.

LetsPlayOrDy
  • LetsPlayOrDy

    Lets mod or die!

  • Members
  • Joined: 24 Aug 2013
  • United-States

#17

Posted 29 July 2014 - 08:55 PM Edited by LetsPlayOrDy, 29 July 2014 - 08:55 PM.

I also read that if you use the SAPI dll instead of System.Speech, it doesn't have the leak. Look here: http://stackoverflow...ech-synthesizer

Noox
  • Noox

    changeScriptAbility(&myScriptAbility, "improve");

  • Members
  • Joined: 20 Jun 2014
  • None

#18

Posted 29 July 2014 - 09:44 PM

Lazy Microsoft programmers :p

  • AgentWD40 likes this

Wiebrendh
  • Wiebrendh

    C# Programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#19

Posted 29 July 2014 - 09:45 PM

LetsPlayOrDie is right, the part where the pc talks back to you creates memory leaks

AgentWD40
  • AgentWD40

    GLITCHED

  • Members
  • Joined: 02 May 2009
  • Philippines

#20

Posted 29 July 2014 - 09:50 PM Edited by hardsty1e, 29 July 2014 - 09:53 PM.

I also read that if you use the SAPI dll instead of System.Speech, it doesn't have the leak. Look here: http://stackoverflow...ech-synthesizer

yup, I showed that link to LMS

 

 

the link you posted clearly states that there is indeed an issue in the code causing memory being leaked. So I'd follow the advice in the post and switch to Microsoft.Speech in order to prevent memory leaks.

 

LMS


LetsPlayOrDie is right, the part where the pc talks back to you creates memory leaks

try this code with System.Speech

    public void Helper(object sender, GraphicsEventArgs e)
    {
        e.Graphics.Scaling = FontScaling.ScreenUnits;
        e.Graphics.DrawText("Memory: " + (Process.GetCurrentProcess().PrivateMemorySize64 / 1024).ToString() + " KB", 0.63f, 0.8f);
    }

Silent
  • Silent

    Altering R* Vision™ since 2008

  • GTA Mods Staff
  • Joined: 01 Feb 2010
  • Poland
  • Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#21

Posted 29 July 2014 - 09:54 PM

That's why native code ftw.

LetsPlayOrDy
  • LetsPlayOrDy

    Lets mod or die!

  • Members
  • Joined: 24 Aug 2013
  • United-States

#22

Posted 29 July 2014 - 09:59 PM

That's why native code ftw.

Yeah... :/

Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#23

Posted 30 July 2014 - 12:13 AM Edited by Rugz007, 30 July 2014 - 12:18 AM.

So i remove the saying back thing ? Or the speech synthesizer.
Don't be angry but what Is a memory leak ?

LetsPlayOrDy
  • LetsPlayOrDy

    Lets mod or die!

  • Members
  • Joined: 24 Aug 2013
  • United-States

#24

Posted 30 July 2014 - 12:20 AM Edited by LetsPlayOrDy, 30 July 2014 - 12:21 AM.

So i remove the saying back thing ? Or the speech synthesizer.
Don't be angry but what Is a memory leak ?

When something is created in the memory but not deleted.

byteMe420
  • byteMe420

    allah akbar!

  • BUSTED!
  • Joined: 02 Jul 2014
  • United-States

#25

Posted 30 July 2014 - 12:23 AM Edited by byteMe420, 30 July 2014 - 12:59 AM.

 

So i remove the saying back thing ? Or the speech synthesizer.
Don't be angry but what Is a memory leak ?

When something is created in the memory but not deleted.

 

Yes but also the script loses track of the memory so it cant be cleaned up and allocated again for something else.So this memory is gone until the app, in this case GTA IV, closes. Once GTA IV closes the memory will be freed but this is a problem when playing as this wastes memory that might be needed later.

 

@Rugz007

This is a memory leak

namespace MemoryLeak
{
    using GTA;

    public class Main : Script
    {
        public Main()
        {
            Tick += Main_Tick;
        }

        private void Main_Tick(object sender, System.EventArgs e)
        {
            //this is an object used to allocate some space in memory for some values
            MemoryStream stream = new MemoryStream();

            //these are the values i will put in the memory i am allocating
            byte[] buffer = new byte[] { 0, 1, 0, 1, 0, 1, 0, 1 };

            //load some 0 and 1 values into memory
            stream.Write(buffer, 0, buffer.Length);

            //so i dont know where in memory these values are, i can only refer to them using the stream object in the script
            //you need to call this to free the memory that has the 0s and 1s... stream.Dispose()
            //since we do not, those 0s and 1s stay until app closes and i cant free anymore after the stream object loses scope
            //so this script is causing a memory leak

        }//stream object loses scope here btw
    }
}

Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#26

Posted 30 July 2014 - 12:25 AM

Okay like temporary files?

Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#27

Posted 30 July 2014 - 12:34 AM

I will post the code Tommorow and you guys my say what is wrong

LetsPlayOrDy
  • LetsPlayOrDy

    Lets mod or die!

  • Members
  • Joined: 24 Aug 2013
  • United-States

#28

Posted 30 July 2014 - 12:38 AM

No, not like temporary files. Temporary files are saved on your hard drive, memory is on the RAM.

I will post the code Tommorow and you guys my say what is wrong

That isn't exactly what we're here.

Rugz007
  • Rugz007

    Scripters ... roll out !

  • Members
  • Joined: 19 Apr 2014
  • India

#29

Posted 30 July 2014 - 12:39 AM

Okay :p hahaha

So have to remove speech synthesizer :)

And some more commands and the mod is ready

LetsPlayOrDy
  • LetsPlayOrDy

    Lets mod or die!

  • Members
  • Joined: 24 Aug 2013
  • United-States

#30

Posted 30 July 2014 - 12:43 AM

Remove the speech synthesizer, then use the code that hardsty1e posted to see if there is a memory leak (if there is, the number will keep rising).
  • Wiebrendh likes this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users