Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
Rugz007

Speech Recognition Reborns !

Recommended Posts

Rugz007

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!

Edited by Rugz007

Share this post


Link to post
Share on other sites
Nathandark

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 (:

Share this post


Link to post
Share on other sites
Rugz007

1 guy in !

others ?

Share this post


Link to post
Share on other sites
Wiebrendh

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 :)

Share this post


Link to post
Share on other sites
Rugz007

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 !

Share this post


Link to post
Share on other sites
Wiebrendh

Why feeling bad about maro

Share this post


Link to post
Share on other sites
Rugz007

dude he got ban second time :p

 

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

 

release by tommorow :D

Share this post


Link to post
Share on other sites
Noox

dude he got ban second time :p

 

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

 

release by tommorow :D

Third time.

Share this post


Link to post
Share on other sites
Jitnaught

@Rugz007

You better actually code it by yourself this time.

@Noox

I only remember two lol

Share this post


Link to post
Share on other sites
Noox

@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.

Share this post


Link to post
Share on other sites
Rugz007

@letsplayordy - i am doing that :D

Share this post


Link to post
Share on other sites
Wiebrendh

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

Share this post


Link to post
Share on other sites
AgentWD40

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

Share this post


Link to post
Share on other sites
Jitnaught

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.

Edited by LetsPlayOrDy

Share this post


Link to post
Share on other sites
AgentWD40

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);    }
Edited by hardsty1e

Share this post


Link to post
Share on other sites
Jitnaught

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

Share this post


Link to post
Share on other sites
Noox

Lazy Microsoft programmers :p

Share this post


Link to post
Share on other sites
Wiebrendh

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

Share this post


Link to post
Share on other sites
AgentWD40

I also read that if you use the SAPI dll instead of System.Speech, it doesn't have the leak. Look here: http://stackoverflow.com/questions/10707187/memory-leak-in-net-speech-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);    }
Edited by hardsty1e

Share this post


Link to post
Share on other sites
Silent

That's why native code ftw.

Share this post


Link to post
Share on other sites
Jitnaught

That's why native code ftw.

Yeah... :/

Share this post


Link to post
Share on other sites
Rugz007

So i remove the saying back thing ? Or the speech synthesizer.

Don't be angry but what Is a memory leak ?

Edited by Rugz007

Share this post


Link to post
Share on other sites
Jitnaught

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. Edited by LetsPlayOrDy

Share this post


Link to post
Share on other sites
byteMe420

 

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    }}
Edited by byteMe420

Share this post


Link to post
Share on other sites
Rugz007

Okay like temporary files?

Share this post


Link to post
Share on other sites
Rugz007

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

Share this post


Link to post
Share on other sites
Jitnaught

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.

Share this post


Link to post
Share on other sites
Rugz007

Okay :p hahaha

 

So have to remove speech synthesizer :)

 

And some more commands and the mod is ready

Share this post


Link to post
Share on other sites
Jitnaught

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).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • 1 User Currently Viewing
    0 Members, 0 Anonymous, 1 Guest

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.