Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Pages: 1 2 [All]

Author Topic: Write / Read Text Files Plug-in  (Read 17239 times)

0 Members and 1 Guest are viewing this topic.

MMR

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 349
  • http://mmrdeveloper.wordpress.com/
    • View Profile
    • TinyWME
Write / Read Text Files Plug-in
« on: June 10, 2004, 05:54:45 PM »

Well, here is a new plug-in for WME  ;D

You can download it from here: http://www.algarinejoven.com/wintermute/ejemplos/filesDLL.exe

Basically it can:
* Create text files
* Write inside them
* Read from them
* Delete text lines
* Know how many lines has a file

It's the first version, but works pretty well  ;)
I also include a example project wich uses all these functions.

I hope this could help you to develop you game  ::)

Note: The DLL file must be in the same folder wme.exe is

EDIT: Updated link
« Last Edit: November 12, 2004, 04:40:23 PM by MMR »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Write / Read Text Files Plug-in
« Reply #1 on: June 10, 2004, 06:48:25 PM »

Great job, Manuel. It seems to be working nicely. Thanks :)
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

McCoy

  • The cocido eater
  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 365
  • Spurrrrrrring
    • View Profile
    • Spur Games
Re: Write / Read Text Files Plug-in
« Reply #2 on: June 10, 2004, 06:57:35 PM »

Ahaha, at last you finished it!

You're da man!

So how did you finally got rid of the annoying memory leak problem?
Logged

Click here to sign my sig!

Jerrot

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 690
    • View Profile
Re: Write / Read Text Files Plug-in
« Reply #3 on: June 11, 2004, 08:39:41 AM »

Well, here is a new plug-in for WME
Logged
Mooh!

gfx johnny

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 142
    • View Profile
Re: Write / Read Text Files Plug-in
« Reply #4 on: June 11, 2004, 09:09:42 AM »

This is great, thank you for sharing it with us!
Logged

Igorrr

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 130
  • Ugh...Ughugh!!!!!!
    • View Profile
    • Struggle For Life And Honour
Re: Write / Read Text Files Plug-in
« Reply #5 on: June 11, 2004, 11:32:20 AM »

Whoooooooooooooooooooooooo !!!!

GREAT WORK MMR!!!!
Logged

MMR

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 349
  • http://mmrdeveloper.wordpress.com/
    • View Profile
    • TinyWME
Re: Write / Read Text Files Plug-in
« Reply #6 on: June 11, 2004, 02:08:15 PM »

Thanks to all of you!

Quote
McCoy: So how did you finally got rid of the annoying memory leak problem?

Mnemonic told me to reserve the memory for the string through WME scripting. That's why you have to write something like...

Code: [Select]
var MyString = new String(256);
And then use MyString in some functions call ;)
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Write / Read Text Files Plug-in
« Reply #7 on: June 11, 2004, 02:11:20 PM »

Yes, so that the string is entirely managed by WME. One thing, MMR, the cleanest solution would be to pass the length of the pre-allocated string to the plugin, so that it doesn't oveflow when reading a long line from the file.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

MMR

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 349
  • http://mmrdeveloper.wordpress.com/
    • View Profile
    • TinyWME
Re: Write / Read Text Files Plug-in
« Reply #8 on: June 11, 2004, 02:13:43 PM »

Yep, you're right.

I've done it, and the file is Updated  ;)
« Last Edit: June 11, 2004, 03:38:25 PM by MMR »
Logged

Ron_Emad2

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 32
    • View Profile
Re: Write / Read Text Files Plug-in
« Reply #9 on: March 19, 2010, 12:34:06 PM »

Hello
Please fix this link becuse it dont work
with thanks
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Write / Read Text Files Plug-in
« Reply #10 on: March 19, 2010, 12:37:20 PM »

Ron_Emad2: This is a very old thread. In the meantime, WME got native support for file access. See the File object in documentation.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Ron_Emad2

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 32
    • View Profile
Re: Write / Read Text Files Plug-in
« Reply #11 on: March 19, 2010, 04:02:49 PM »

Oh Forgive me
i find it in documentation
thanks
Logged

Gambit

  • Occasional poster
  • **
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 65
    • View Profile
Re: Write / Read Text Files Plug-in
« Reply #12 on: March 21, 2010, 02:16:17 AM »

dead link
Error 404 - No Encontrado  :'(
Logged

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: Write / Read Text Files Plug-in
« Reply #13 on: March 21, 2010, 12:32:15 PM »

Please, read Mnemonic's post.
Logged
fl*p

lfkk77

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 2
    • View Profile
Re: Write / Read Text Files Plug-in
« Reply #14 on: December 14, 2010, 09:35:02 PM »

hi,MMR.Thank you very much!
Link is bad, can provide a new Download address? Thank you very much! ???
Logged
Hi, Hello everybody, I am happy to WME family!

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: Write / Read Text Files Plug-in
« Reply #15 on: December 14, 2010, 09:43:04 PM »

Please, read the thread.
Logged
fl*p

MMR

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 349
  • http://mmrdeveloper.wordpress.com/
    • View Profile
    • TinyWME
Re: Write / Read Text Files Plug-in
« Reply #16 on: December 21, 2010, 11:21:18 PM »

Hi lfkk77,

This plugin is not needed as that functionality is already implemented in the current version of WME.

Cheers!
Logged
Pages: 1 2 [All]
 

Page created in 0.066 seconds with 23 queries.