Author Topic: How to read a PMS map file. (don't know if it is the right place to post)  (Read 4127 times)

0 Members and 1 Guest are viewing this topic.

Offline MR X

  • Soldier
  • **
  • Posts: 148
  • Soldat Rulezz and must be played forever
How can i easly read a PMS map file so you can view the map. i want something smillar in my software and i don't know where to start?

Anyone know this?
Soldat Rulezz and must be played forever


Offline MR X

  • Soldier
  • **
  • Posts: 148
  • Soldat Rulezz and must be played forever
I don't understand that.I've read that before .isnt there a possibility to view a php script without using appace. it would be nice. than i can integrate that php script in an app to use it!.
Soldat Rulezz and must be played forever

Offline bja888

  • Flagrunner
  • ****
  • Posts: 745
  • Working
    • Bja888.com
Perhaps start here?

Offline mxyzptlk

  • Veteran
  • *****
  • Posts: 1493
  • The Panda Ninja
Perhaps start here?


Dude!

I need that so bad...

[/IRNOOB@C++]

"While preceding your entrance with a grenade is a good tactic in
Quake, it can lead to problems if attempted at work." -- C Hacking

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Thanks for your great contribution to this topic mxyzptlk, one for the team indeed....

You can't implement a PHP script into your app if it is an exe or anything. Must be PHP aswell.
If you want to render a PMS map, you would have to integrate DirectX/OpenGL into your program and draw it yourself. Probably out of your league though. In which case giving up would be ideal.

Offline bja888

  • Flagrunner
  • ****
  • Posts: 745
  • Working
    • Bja888.com
If its perl it wont be too hard to modify. And its not had to run perl on windows. (I've done it before)

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
MR X, if you told us what language you are aiming for, it would help us in giving you the best help.
« Last Edit: July 20, 2007, 08:46:27 am by chrisgbk »

Offline MR X

  • Soldier
  • **
  • Posts: 148
  • Soldat Rulezz and must be played forever
My programs are made in Autoplay media studio. The scripting language used is LUA.
Wy? Cuase it pretty simple, powerfull, and Quick to programm.

Date Posted: July 20, 2007, 06:48:31 PM
OK im gonna learn C++ but ill wait to at some solution for LUA and AMS
« Last Edit: July 20, 2007, 11:52:13 am by MR X »
Soldat Rulezz and must be played forever

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Using Lua, there is no easy way to handle PMS files. They require the ability to to deal with data on a binary level, which Lua lacks; if it had a function similar to PHPs unpack, this would be possible with minimal effort, but this is not the case.

Offline MR X

  • Soldier
  • **
  • Posts: 148
  • Soldat Rulezz and must be played forever
any hard way than with lua? i'm pretty advanced in lua
Soldat Rulezz and must be played forever

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
any hard way than with lua? i'm pretty advanced in lua

The only thing you can do would be to write a DLL in C/C++ to give you the control you need.

Or, write an IEEE754 32 bit precision floating point emulator, using the tools Lua gives you (not easy by any stretch).

Offline MR X

  • Soldier
  • **
  • Posts: 148
  • Soldat Rulezz and must be played forever
Can you write the dll for me? i dont know c++ only lua and how to use dll's in lua
Soldat Rulezz and must be played forever

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Sorry, I neither have the time, nor the motivation to undertake such a project or debug it.

Offline bja888

  • Flagrunner
  • ****
  • Posts: 745
  • Working
    • Bja888.com
I think I heard something about polyworks going open source. You might wanna start there.

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
I think I heard something about polyworks going open source. You might wanna start there.

If it did, it wouldn't be much help to him as polyworks is written in Visual Basic. His problem lies in a technical limitation of the language, not a lack of knowledge of the format.

Offline DePhille

  • Flagrunner
  • ****
  • Posts: 623
  • SoldatPage Webmaster
    • SoldatPage
I think it's best for you (MR X) to move to another language if you really want to get this done.
I suggest Visual Basic (I'll get flamed for that) simply because it's very easy to get started with and to distribute. There are also tons of sources for information about nearly everything aswell as DLLs, OCXs and so on. But keep in mind that VB apps can only run on a Windows machine! Also, you could easily copy parts of Polyworks if it goes open-source, if Anna allows you to.

Grtz, DePhille
This signature was broken. Feel free to fix it.

Offline MR X

  • Soldier
  • **
  • Posts: 148
  • Soldat Rulezz and must be played forever
thanks for the reply's guys. ive discovered something. someone has build an IDE that can parse php scripts inside lua/ams software (witch i can create). now i need to do some research on it. maybe it will work. wish me luck  :)
« Last Edit: August 16, 2007, 05:30:33 pm by MR X »
Soldat Rulezz and must be played forever