The online racing simulator
Searching in All forums
(669 results)
GeForz
S3 licensed
Thats not yet implemented
GeForz
S3 licensed
Actually. I will change it back to struct.
And Remove PACK/UNPACK from the "wrong" packets.
GeForz
S3 licensed
I've checked all the normal packets for now.

Missing Packets, perhaps someone else knows them better:
- Buttons (Sorry I can't program brain**** )
- Relay/Hosts

It's in my master "branch" http://github.com/GeForz/PRISM

But before you pull it.
Should I change the name back to struct?
GeForz
S3 licensed
I was just wondering IF we need the password when we have "strong" usernames
GeForz
S3 licensed
With the explanations it sounds like it could work

Only thing that irritates me is the second string. Is that supposed to be a password? Can usernames be faked?
GeForz
S3 licensed
And I've tested almost all and fixed a few packets in my "master branch"

I've changed the pack method to expect an array-value for formatting codes with repeater (except aXX).
The changes in PHPInSimMod.php are mainly for testing purposes
GeForz
S3 licensed
Damn thee oh javascript cross domain forbidance

(or something like that; I wrote a test_plugin which writes data into json file in my webserver dir; but perhaps that could be handled directly... ^^)
GeForz
S3 licensed
The form you postet is rather uncommon afaik.
The closest thing to that in php is to call the constructor with an array with such mapping.
GeForz
S3 licensed
abstract class plugins
abstract class struct
class theTime

Not uppercased :/
GeForz
S3 licensed
I'd prefer "Style 3 - OOP, Arrays and it's own send method built in!" for sending messages
GeForz
S3 licensed
But he has a point, which is adding/removing prism from a server without restarting prism and thus interfering with prism running on other servers.
GeForz
S3 licensed
Btw Dygear, you are naming your classes wrong
GeForz
S3 licensed
If you have any open tasks just let me know
GeForz
S3 licensed
Oh and @Plugin-System: Did you include dependencies?
Like one person wrote a plugin which handles buttons or a plugin which keeps track of players and someone else writes a plugin which could use the the player-list-plugin-data?
GeForz
S3 licensed
How do local config file and interactive come together now?

a) Remove default connections.ini from project?
b) Let autoini write localini and supply a default connections ini with testserver over relay? That would require a interactive startup which asks "no local config found, do you want to create one?"
c) a) and remove localini
d) ?
GeForz
S3 licensed
Well, i ran it in cygwin, so basically windows

And no, it's not. At least not when in singleplayer mode and connecting with insim
GeForz
S3 licensed
Good work

See bug report
$ php PHPInSimMod.php
Loaded cvars.ini
Could not find ini file "connections.inii"
***Interactive startup***
You now have the chance to manually enter the details of the host(s) you want to connect to.
Afterwards your connection settings will be stored in ./config/connections.ini for future use.

Do you want to connect to a host directly or through the relay? [direct/relay] : direct
What is the IP address or hostname of the host? [] : localhost
What is the InSim port number of the host? [] : 29999
Do you want to connect to the host via TCP or UDP? [tcp/udp] : tcp
What is the administrator password of the host? [] :
What is the administrator password of the host? [] :
What is the administrator password of the host? [] : none
Fatal error encountered. Exiting...
Safe shutdown: 09-01-10@22:28:46

Empty password doesn't work and fatal error
Oh well probably because file creation is commented out
GeForz
S3 licensed
Svn would be easier in this stage of dev

###

There are still 2 bugs in http://github.com/Dygear/PRISM ... modules/prism_packets.php :/

a) printPacketDetails needs a "global $TYPEs;"
b) Lines 92-95 need to be above line 75

And btw: who switched from MCI to NLP? ^^
GeForz
S3 licensed
Jeah that's what I mean.

first do the tyre stuff
then assign the parsed properties to the packet fields
then do NLP and MCI parsing (they currently rely on NumC/NumP beeing set before.)
GeForz
S3 licensed
Bug report:
Move lines 92-95 in prism_packets to line 74
GeForz
S3 licensed
Quote from Dygear :As it turns out, you should of used the `git fetch` command as explained here:





Agreed, I'm still getting used to it. But even with some of the head aches, its still quite invaluable. There is no way we would of been able to have us three currently working on this without github. At least it does most of the merges for us.

I think this is the correct way:
$ git clone http://github.com/Dygear/PRISM.git
Initialized empty Git repository in /cygdrive/e/proggen/php/PRISM/.git/
remote: Counting objects: 123, done.
remote: Compressing objects: 100% (117/117), done.
remote: Total 123 (delta 69), reused 0 (delta 0)
Receiving objects: 100% (123/123), 58.54 KiB, done.
Resolving deltas: 100% (69/69), done.

$ cd PRISM/

$ git branch -r
origin/HEAD -> origin/master
origin/current
origin/master
origin/packetFix
origin/udp

$ git branch current origin/current
Branch current set up to track remote branch current from origin.

$ git branch
current
* master

The git branch -r shows that all remote branches are downloaded but not set up...
GeForz
S3 licensed
http://cheat.errtheblog.com/s/git states
Quote :git config branch.autosetupmerge true
tells git-branch and git-checkout to setup new branches so that git-pull(1)
will appropriately merge from that remote branch. Recommended. Without this,
you will have to add --track to your branch command or manually merge remote
tracking branches with "fetch" and then "merge".

Should we enable that vic? ^^
Last edited by GeForz, .
GeForz
S3 licensed
At least stick to the file-style if you edit an existing file
GeForz
S3 licensed
This whole distributed repository makes my head explode... But jeah had the same issues with the current-branch
FGED GREDG RDFGDR GSFDG