Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

License under GPLv2 or later #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
339 changes: 339 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

26 changes: 12 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,25 @@ The tools will be available in the build folder.

# Donate

If you like my work, a donation would be nice:
This project was created by Jannik Vogel.
He still maintains the project.
If you like his work, a donation would be nice:

* [Patreon](https://www.patreon.com/jayfoxrox)
* [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=x1f3o3x7x%40googlemail%2ecom&lc=GB&item_name=Jannik%20Vogel%20%28JayFoxRox%29&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest)

Even a small amount does help me and shows appreciation. Thank you!
Even a small amount does help him and shows appreciation. Thank you!

# License

(c) 2017 Jannik Vogel (JayFoxRox)
All rights reserved.
**(C) 2017 pba-tools developers**

* I hereby explicitly allow you to look at the source-code of pba-tools.
* You are also allowed to download my code, compile my code and execute the generated binary.
* For scripts you are allowed to interpret them using the respective scripting languages interpreter.
* You are *explicitly* **not allowed to modify** any of my code.
* You are *explicitly* **not allowed to link** (in any possible way) my code (or any derivative, such as the binary) against other software (except system libraries) either.
* You are *explicitly* **not allowed to redistribute** my code (or any derivative, such as the binary) anywhere.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This means you are not allowed to re-use this code (or any derivative work) for any other projects.
See LICENSE.txt for more information.


Want this changed? License is TBD.
If you have license recommendations, tell me about it in GitHub Issue #1
*The output files generated by this program are closely related to the input files.*
*Please respect the license and copyright of the input files.*
5 changes: 5 additions & 0 deletions csv.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// This converts a PBA CSV file to JSON (which is far easier to parse)
//
// (C) 2017 Jannik Vogel
//
// Licensed under GPLv2 or later.
// See LICENSE.txt for more information.

// Assumptions:
// * Comma at end of line is implied (sometimes given, sometimes not)
Expand Down
6 changes: 6 additions & 0 deletions format0001.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// Zero terminates 0001 files
//
// (C) 2017 Jannik Vogel
//
// Licensed under GPLv2 or later.
// See LICENSE.txt for more information.

//FIXME: Some files are actually ROMs so the tool won't work?!

#include <stdint.h>
Expand Down
6 changes: 6 additions & 0 deletions format0022.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// Converts 0022 files to tga
//
// (C) 2017 Jannik Vogel
//
// Licensed under GPLv2 or later.
// See LICENSE.txt for more information.

//FIXME: Somehow store used-size + mipmaps

#include <assert.h>
Expand Down
5 changes: 5 additions & 0 deletions format0024.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// Converts 0024 files to obj / mtl
//
// (C) 2017 Jannik Vogel
//
// Licensed under GPLv2 or later.
// See LICENSE.txt for more information.

#include <stdint.h>
#include <stdbool.h>
Expand Down
6 changes: 6 additions & 0 deletions format0025.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// Converts 0025 files to WAV
//
// (C) 2017 Jannik Vogel
//
// Licensed under GPLv2 or later.
// See LICENSE.txt for more information.

//FIXME: What's different with unk0 == 1 ?!

#include <stdint.h>
Expand Down
6 changes: 6 additions & 0 deletions format002A.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// Prints 002A files
//
// (C) 2017 Jannik Vogel
//
// Licensed under GPLv2 or later.
// See LICENSE.txt for more information.

//FIXME: Add support for light-placements

#include <stdint.h>
Expand Down
5 changes: 5 additions & 0 deletions format002C.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// Converts 002C files to a obj (which contains the collision)
//
// (C) 2017 Jannik Vogel
//
// Licensed under GPLv2 or later.
// See LICENSE.txt for more information.

#include <stdint.h>
#include <stdbool.h>
Expand Down
6 changes: 6 additions & 0 deletions format008D.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// Converts 008D files to jpg
//
// (C) 2017 Jannik Vogel
//
// Licensed under GPLv2 or later.
// See LICENSE.txt for more information.

//FIXME: Find length of JFIF [by parsing the markers and searching EOI]

//FIXME: Merge with 0022 [but keep the format checks seperated until it is more clear what actually happens]
Expand Down
5 changes: 5 additions & 0 deletions json.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// JSON helper routines
//
// (C) 2017 Jannik Vogel
//
// Licensed under GPLv2 or later.
// See LICENSE.txt for more information.

static unsigned int nesting = 0;
static bool isFirst = true; // Wether an element is the first within the object / array
Expand Down
7 changes: 7 additions & 0 deletions rez.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// Routines to work with PBA rez files
//
// (C) 2017 Jannik Vogel
//
// Licensed under GPLv2 or later.
// See LICENSE.txt for more information.

#include <stdbool.h>
#include <assert.h>
#include <stdint.h>
Expand Down
9 changes: 9 additions & 0 deletions scripts/blender.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#!/usr/bin/env python3

# Script to import pre-processed PBA files into Blender
#
# (C) 2017 Jannik Vogel
#
# Licensed under GPLv2 or later.
# See LICENSE.txt for more information.

# Invoke using "blender --python blender.py -- <path-to-table file>"

import bpy
Expand Down
7 changes: 7 additions & 0 deletions surface.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// PBA surface structures
//
// (C) 2017 Jannik Vogel
//
// Licensed under GPLv2 or later.
// See LICENSE.txt for more information.

#include <stdint.h>

typedef struct {
Expand Down
7 changes: 7 additions & 0 deletions tga.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
// TGA helpers
//
// (C) 2017 Jannik Vogel
//
// Licensed under GPLv2 or later.
// See LICENSE.txt for more information.

typedef struct {
char idlength;
char colourmaptype;
Expand Down